From f66d8bed59bd245f30c961589e163e623ea00386 Mon Sep 17 00:00:00 2001 From: tanghc Date: Tue, 15 Sep 2020 10:59:10 +0800 Subject: [PATCH] 4.0.3 --- .../com/gitee/sop/gatewaycommon/validate/ApiValidator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/validate/ApiValidator.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/validate/ApiValidator.java index 63061a70..f51dc822 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/validate/ApiValidator.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/validate/ApiValidator.java @@ -71,14 +71,13 @@ public class ApiValidator implements Validator { TargetRoute targetRoute = checkEnable(param); initFields(targetRoute, param); ApiConfig apiConfig = ApiContext.getApiConfig(); + checkAppKey(param); if (apiConfig.isIgnoreValidate() || BooleanUtils.toBoolean(targetRoute.getRouteDefinition().getIgnoreValidate())) { if (log.isDebugEnabled()) { log.debug("忽略签名校验, name:{}, version:{}", param.fetchName(), param.fetchVersion()); } } else { - // 需要验证签名,先校验appKey,后校验签名,顺序不能变 - checkAppKey(param); checkSign(param); } checkTimeout(param);