From f836961500987d2ce46bb9955c022993383a3fc3 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Wed, 18 Jan 2023 13:51:55 +0800 Subject: [PATCH] response --- .../com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {