diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java index 49b5ee2..b9c0a2e 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java @@ -38,8 +38,8 @@ public class GlobalResponseHandler implements ResponseBodyAdvice { if (o instanceof String) { return JSONUtil.toJsonStr(apiResponse); } -// return ApiResponse.ofSuccess(o); - return o; + return ApiResponse.ofSuccess(o); +// return o; } private Boolean filter(MethodParameter methodParameter) {