From dded9237a66e1485a69e8d02b501b546978b255a Mon Sep 17 00:00:00 2001 From: click33 <2393584716@qq.com> Date: Tue, 11 Mar 2025 13:57:38 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B8=A2=E4=BA=BA=E4=B8=8B?= =?UTF-8?q?=E7=BA=BF=E5=B0=86=E5=88=A0=E9=99=A4=E5=AF=B9=E5=BA=94=E7=9A=84?= =?UTF-8?q?=20token-session=20=E5=AF=B9=E8=B1=A1.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/dev33/satoken/stp/StpLogic.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sa-token-core/src/main/java/cn/dev33/satoken/stp/StpLogic.java b/sa-token-core/src/main/java/cn/dev33/satoken/stp/StpLogic.java index b4addc8c..56d66bea 100644 --- a/sa-token-core/src/main/java/cn/dev33/satoken/stp/StpLogic.java +++ b/sa-token-core/src/main/java/cn/dev33/satoken/stp/StpLogic.java @@ -825,8 +825,8 @@ public class StpLogic { // 2.4、将此 token 标记为:已被踢下线 updateTokenToIdMapping(tokenValue, NotLoginException.KICK_OUT); - // 2.5、此处不需要清除它的 Token-Session 对象 - // deleteTokenSession(tokenValue); + // 2.5、清除 Token-Session + deleteTokenSession(tokenValue); // 2.6、$$ 发布事件:xx 账号的 xx 客户端被踢下线了 SaTokenEventCenter.doKickout(loginType, loginId, tokenValue);