From b28b00850afbd38458f4f3510fea95e4d939575d Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 14 Oct 2024 11:58:00 +0800 Subject: [PATCH] =?UTF-8?q?perf(X-Pack):=20=E4=BC=98=E5=8C=96=E7=A4=BE?= =?UTF-8?q?=E5=8C=BA=E7=89=88token=E9=AA=8C=E8=AF=81=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- de-xpack | 2 +- .../java/io/dataease/auth/filter/CommunityTokenFilter.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/de-xpack b/de-xpack index 08cc93e3fb..7c95eb9a2c 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit 08cc93e3fb3dc9579759a738dad6a1726577f026 +Subproject commit 7c95eb9a2cd5c13e7c06e92b72b36c14db6d0d3c diff --git a/sdk/common/src/main/java/io/dataease/auth/filter/CommunityTokenFilter.java b/sdk/common/src/main/java/io/dataease/auth/filter/CommunityTokenFilter.java index fe721b92c0..91211b4de6 100644 --- a/sdk/common/src/main/java/io/dataease/auth/filter/CommunityTokenFilter.java +++ b/sdk/common/src/main/java/io/dataease/auth/filter/CommunityTokenFilter.java @@ -40,9 +40,9 @@ public class CommunityTokenFilter implements Filter { String pwd = SubstituleLoginConfig.getPwd(); secret = Md5Utils.md5(pwd); } else { - Object apisixTokenManage = CommonBeanFactory.getBean("apisixTokenManage"); - Method method = DeReflectUtil.findMethod(apisixTokenManage.getClass(), "userCacheBO"); - Object o = ReflectionUtils.invokeMethod(method, apisixTokenManage, userId); + Object apisixCacheManage = CommonBeanFactory.getBean("apisixCacheManage"); + Method method = DeReflectUtil.findMethod(apisixCacheManage.getClass(), "userCacheBO"); + Object o = ReflectionUtils.invokeMethod(method, apisixCacheManage, userId); Method pwdMethod = DeReflectUtil.findMethod(o.getClass(), "getPwd"); Object pwdObj = ReflectionUtils.invokeMethod(pwdMethod, o); secret = pwdObj.toString();