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);