From 1a326cb70f0bc0a8e139aabacaa5060eedc3305c Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Sat, 16 Sep 2023 21:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E5=80=BC=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/config/sign/util/HttpUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/config/sign/util/HttpUtils.java b/jeecg-boot-base-core/src/main/java/org/jeecg/config/sign/util/HttpUtils.java index 1444e0a4..51224621 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/config/sign/util/HttpUtils.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/config/sign/util/HttpUtils.java @@ -44,7 +44,11 @@ public class HttpUtils { //https://www.52dianzi.com/category/article/37/565371.html if(deString.contains("%")){ - deString = URLDecoder.decode(deString, "UTF-8"); + try { + deString = URLDecoder.decode(deString, "UTF-8"); + } catch (Exception e) { + //e.printStackTrace(); + } log.info("存在%情况下,执行两次解码 — pathVariable decode: {}",deString); } log.info(" pathVariable decode: {}",deString);