pull/1/MERGE
tanghc 5 years ago
parent e8e6fc4ce4
commit 563d5adcc0
  1. 5
      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.setRequest(RequestUtil.wrapRequest(request));
currentContext.setResponse(response); currentContext.setResponse(response);
// 解析参数 // 解析参数
ApiParam param = paramBuilder.build(currentContext); ApiParam param = ZuulContext.getApiParam();
if (param == null) {
param = paramBuilder.build(currentContext);
ZuulContext.setApiParam(param); ZuulContext.setApiParam(param);
}
doValidate(currentContext, param, callback); doValidate(currentContext, param, callback);
} }

Loading…
Cancel
Save