pull/3/head
tanghc 4 years ago
parent 95f2ecf7dc
commit f66d8bed59
  1. 3
      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);

Loading…
Cancel
Save