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