From 3e2ab99fa010b4f3c0cae7b7720dc36e1c2673b2 Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Mon, 29 Jul 2024 10:50:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 50 ++++++++++--------- .../aqgqj/advice/DecryptAndVerifyAspect.java | 1 + .../com/bonus/aqgqj/filter/TokenFilter.java | 8 ++- src/main/resources/static/js/publicJs.js | 8 +-- 4 files changed, 38 insertions(+), 29 deletions(-) diff --git a/pom.xml b/pom.xml index fc264ff..39633b7 100644 --- a/pom.xml +++ b/pom.xml @@ -9,10 +9,10 @@ com.bonus.boot - zhly-service - 0.0.1-SNAPSHOT - zhly-service - zhly-service + szgqj-service + 1.0.0.1-SNAPSHOT + szgqj-service + szgqj-service 1.8 @@ -155,7 +155,7 @@ com.alibaba fastjson - 1.2.28 + 1.2.83 @@ -330,24 +330,26 @@ - - - - org.springframework.boot - spring-boot-maven-plugin - - true - - - - org.apache.maven.plugins - 2.6 - maven-resources-plugin - - UTF-8 - - - - + + + + + + org.springframework.boot + spring-boot-maven-plugin + + true + + + + org.apache.maven.plugins + 2.6 + maven-resources-plugin + + UTF-8 + + + + diff --git a/src/main/java/com/bonus/aqgqj/advice/DecryptAndVerifyAspect.java b/src/main/java/com/bonus/aqgqj/advice/DecryptAndVerifyAspect.java index e954ae3..327b33a 100644 --- a/src/main/java/com/bonus/aqgqj/advice/DecryptAndVerifyAspect.java +++ b/src/main/java/com/bonus/aqgqj/advice/DecryptAndVerifyAspect.java @@ -42,6 +42,7 @@ public class DecryptAndVerifyAspect { if (annotation == null || annotation.decryptedClass() == null) { throw new DecryptAndVerifyException(joinPoint.getSignature().getName() + ",未指定解密类型"); } + System.setProperty("com.alibaba.fastjson.asmEnable", "false"); encryptedReq.setData(JSON.parseObject(decryptedData, annotation.decryptedClass())); return joinPoint.proceed(); } diff --git a/src/main/java/com/bonus/aqgqj/filter/TokenFilter.java b/src/main/java/com/bonus/aqgqj/filter/TokenFilter.java index 827b115..040b8b0 100644 --- a/src/main/java/com/bonus/aqgqj/filter/TokenFilter.java +++ b/src/main/java/com/bonus/aqgqj/filter/TokenFilter.java @@ -155,7 +155,11 @@ public class TokenFilter extends OncePerRequestFilter { Boolean isYq=true; String url=uri.replace(filePath+"/","").trim(); String[] htmls=html.split(","); + for (int i = 0; i