From 1094408ea53a23e8d170bbfa2dd9fe072a6f25fd Mon Sep 17 00:00:00 2001 From: binarypursuer Date: Thu, 3 Apr 2025 00:03:47 +0800 Subject: [PATCH] =?UTF-8?q?jwt=20token=E4=B8=AD=E8=8E=B7=E5=8F=96loginType?= =?UTF-8?q?=E9=80=9A=E8=BF=87loginType=E8=8E=B7=E5=8F=96StpLogic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/dev33/satoken/jwt/JwtSaManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sa-token-plugin/sa-token-jwt/src/main/java/cn/dev33/satoken/jwt/JwtSaManager.java b/sa-token-plugin/sa-token-jwt/src/main/java/cn/dev33/satoken/jwt/JwtSaManager.java index 0d551197..c51f2399 100644 --- a/sa-token-plugin/sa-token-jwt/src/main/java/cn/dev33/satoken/jwt/JwtSaManager.java +++ b/sa-token-plugin/sa-token-jwt/src/main/java/cn/dev33/satoken/jwt/JwtSaManager.java @@ -52,7 +52,7 @@ public class JwtSaManager { * @date 2025/4/2 * @since 1.0 **/ - public StpLogic getStpLogic(String tokenName) { + public static StpLogic getStpLogic(String tokenName) { // 获取当前请求的token String token = SaHolder.getRequest().getHeader(tokenName); // 判断token是否为空 @@ -81,7 +81,7 @@ public class JwtSaManager { * @date 2025/4/2 * @since 1.0 **/ - public StpLogic getStpLogic() { + public static StpLogic getStpLogic() { return getStpLogic(StpUtil.getTokenName()); } } \ No newline at end of file