Browse Source

response

master
PoffyZhang 1 year ago
parent
commit
f836961500
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java

+ 2
- 2
pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java View File

@@ -38,8 +38,8 @@ public class GlobalResponseHandler implements ResponseBodyAdvice<Object> {
if (o instanceof String) { if (o instanceof String) {
return JSONUtil.toJsonStr(apiResponse); return JSONUtil.toJsonStr(apiResponse);
} }
// return ApiResponse.ofSuccess(o);
return o;
return ApiResponse.ofSuccess(o);
// return o;
} }


private Boolean filter(MethodParameter methodParameter) { private Boolean filter(MethodParameter methodParameter) {


Loading…
Cancel
Save