pull/1/MERGE
tanghc 5 years ago
parent e8e6fc4ce4
commit 563d5adcc0
  1. 7
      sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/ValidateService.java

@ -38,8 +38,11 @@ public class ValidateService {
currentContext.setRequest(RequestUtil.wrapRequest(request));
currentContext.setResponse(response);
// 解析参数
ApiParam param = paramBuilder.build(currentContext);
ZuulContext.setApiParam(param);
ApiParam param = ZuulContext.getApiParam();
if (param == null) {
param = paramBuilder.build(currentContext);
ZuulContext.setApiParam(param);
}
doValidate(currentContext, param, callback);
}

Loading…
Cancel
Save