移除 SaLogInput 组件

This commit is contained in:
click33
2022-11-03 13:44:33 +08:00
parent 2abd152218
commit 6dc9be8cd7
16 changed files with 222 additions and 291 deletions

View File

@@ -6,6 +6,7 @@ import org.springframework.stereotype.Component;
import cn.dev33.satoken.SaManager;
import cn.dev33.satoken.fun.SaFunction;
import cn.dev33.satoken.listener.SaTokenEventCenter;
import cn.dev33.satoken.session.SaSession;
import cn.dev33.satoken.stp.SaLoginModel;
import cn.dev33.satoken.stp.SaTokenInfo;
@@ -54,8 +55,8 @@ public class StpUserUtil {
// 以便可以通过 SaManager.getStpLogic(type) 的方式来全局获取到这个 StpLogic
SaManager.putStpLogic(newStpLogic);
// ## 发送日志
SaManager.getLogInput().replaceStpLogic(stpLogic);
// $$ 全局事件
SaTokenEventCenter.doSetStpLogic(stpLogic);
}
/**