From 050b479fa69488acefb708a93c9c0e1ea991bd6f Mon Sep 17 00:00:00 2001 From: caihaohan Date: Wed, 7 Aug 2024 11:14:35 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat:=20=E5=A4=96=E9=83=A8=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E7=9A=84token=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=A0=87=E8=AF=86=E5=AD=98=E5=88=B0redis=E4=B8=AD"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a31227e7 --- .../docking/srms/service/impl/SrmsApiServiceImpl.java | 5 ----- .../src/main/resources/application-dev.yml | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/laws-modules-docking/src/main/java/com/jero/modules/docking/srms/service/impl/SrmsApiServiceImpl.java b/laws-modules-docking/src/main/java/com/jero/modules/docking/srms/service/impl/SrmsApiServiceImpl.java index ae8fbe2f..4dbfd879 100644 --- a/laws-modules-docking/src/main/java/com/jero/modules/docking/srms/service/impl/SrmsApiServiceImpl.java +++ b/laws-modules-docking/src/main/java/com/jero/modules/docking/srms/service/impl/SrmsApiServiceImpl.java @@ -183,14 +183,9 @@ public class SrmsApiServiceImpl implements SrmsApiService { re = loginService.srmsByToken(ettonSysUser); String token = re.getResult().get("token").toString(); String tokenKey = byTokenRequests.getUsername() + token; - String viewKey = token + "-X"; redisUtil.set(tokenKey, token, 3600); - redisUtil.set(viewKey, token, 3600); } else { re = loginService.srmsByToken(byTokenRequests.getUsername()); - String token = re.getResult().get("token").toString(); - String viewKey = token + "-X"; - redisUtil.set(viewKey, token, 24 * 60 * 60); } return re; } catch (Exception e) { diff --git a/laws-single-startup/src/main/resources/application-dev.yml b/laws-single-startup/src/main/resources/application-dev.yml index 0d2a3049..cccdda4b 100644 --- a/laws-single-startup/src/main/resources/application-dev.yml +++ b/laws-single-startup/src/main/resources/application-dev.yml @@ -268,7 +268,7 @@ jero: username: grp password: Grp2023.08 cluster-name: jero-ES - cluster-nodes: 10.10.10.45:7900 + cluster-nodes: 10.10.10.45:7213 check-enabled: false # 表单设计器配置 desform: @@ -324,12 +324,12 @@ jero: # 文件限制后缀黑名单 fileSuffixLimits : 0x00,%00,\\00,.jsp,.exe,.php,.asp,.aspx,.jspx,.xml,.html,.js,.sh,.bin,$DATA # 跨站白名单 - whiteUrls: localhost:62345,localhost:8184,localhost:3334,localhost:3435,localhost:3408,localhost:3335,localhost:3508 + whiteUrls: localhost:62345,localhost:8184,localhost:3334,localhost:3435,localhost:3408,localhost:3335,localhost:3508,10.0.10.42:8082 xssExcludedPages: /login,/updatePassword # cors白名单 notFilter: # origin地址 - originIp: http://localhost:62345,http://localhost:8184,http://localhost:3334,http://localhost:3335,http://localhost:3435,http://localhost:3408,http://localhost:3508 + originIp: http://localhost:62345,http://localhost:8184,http://localhost:3334,http://localhost:3335,http://localhost:3435,http://localhost:3408,http://localhost:3508,http://10.0.10.42:8082 # 加密默认值 password: pbe: @@ -469,7 +469,7 @@ enterpriseDetailRoleCode: JTGLBZCXJS # 文件下载加解密 download: - enable: true + enable: false # 文件下载、预览拦截路径,多个以逗号分隔 download_url: /sys/common/download/ view_url: /sys/common/view/