From 8bbe60975a71c1fc0027b4c97e9fb55d4d341526 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 10 Aug 2020 17:24:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=98=B2=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=8B=A6=E6=88=AA=E5=99=A8=EF=BC=8C=E9=9D=9E?= =?UTF-8?q?JSON=E6=A0=BC=E5=BC=8F=E4=B8=8D=E8=8E=B7=E5=8F=96Body=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/interceptor/impl/SameUrlDataInterceptor.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java b/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java index 6eba975..385a05b 100644 --- a/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java +++ b/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java @@ -53,8 +53,7 @@ public class SameUrlDataInterceptor extends RepeatSubmitInterceptor public boolean isRepeatSubmit(HttpServletRequest request) { String nowParams = ""; - if (request instanceof HttpServletRequest && StringUtils.equalsAnyIgnoreCase(request.getContentType(), - MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_JSON_UTF8_VALUE)) + if (request instanceof RepeatedlyRequestWrapper) { RepeatedlyRequestWrapper repeatedlyRequest = (RepeatedlyRequestWrapper) request; nowParams = HttpHelper.getBodyString(repeatedlyRequest);