From eaffd21edf4197805dfcaf07efa8b0062c0f2972 Mon Sep 17 00:00:00 2001 From: jay <75509151@qq.com> Date: Tue, 7 May 2024 12:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=8B=A6=E6=88=AA=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cc/iotkit/common/web/handler/ResponseResultHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iot-common-web/src/main/java/cc/iotkit/common/web/handler/ResponseResultHandler.java b/iot-common-web/src/main/java/cc/iotkit/common/web/handler/ResponseResultHandler.java index f18880c..464ffcb 100755 --- a/iot-common-web/src/main/java/cc/iotkit/common/web/handler/ResponseResultHandler.java +++ b/iot-common-web/src/main/java/cc/iotkit/common/web/handler/ResponseResultHandler.java @@ -52,6 +52,11 @@ public class ResponseResultHandler implements ResponseBodyAdvice { MediaType selectedContentType, Class> selectedConverterType, ServerHttpRequest request, ServerHttpResponse response) { + String requestPath = request.getURI().getPath(); + if(requestPath.startsWith("/plugins/")){ + return body; + } + if (body instanceof GlobalExceptionHandler.RequestResult) { GlobalExceptionHandler.RequestResult requestResult = (GlobalExceptionHandler.RequestResult) body; return new Response(requestResult.getCode(), requestResult.getMessage(),