|
|
|
@ -124,11 +124,15 @@ public class ApiArgumentResolver implements SopHandlerMethodArgumentResolver { |
|
|
|
|
, WebDataBinderFactory webDataBinderFactory |
|
|
|
|
) throws Exception { |
|
|
|
|
if (openApiParams.contains(methodParameter)) { |
|
|
|
|
Object paramObj = this.getParamObject(methodParameter, nativeWebRequest); |
|
|
|
|
Object ret = this.getParamObject(methodParameter, nativeWebRequest); |
|
|
|
|
Object paramObj = ret; |
|
|
|
|
if (paramObj instanceof OpenContext) { |
|
|
|
|
paramObj = ((OpenContext) paramObj).getBizObject(); |
|
|
|
|
} |
|
|
|
|
if (paramObj != null) { |
|
|
|
|
// JSR-303验证
|
|
|
|
|
paramValidator.validateBizParam(paramObj); |
|
|
|
|
return paramObj; |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
HandlerMethodArgumentResolver resolver = getOtherArgumentResolver(methodParameter); |
|
|
|
|