mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-21 19:17:25 +08:00
fix(core): 修复 StpUtil.setTokenValue("xxx"); 方法 loginModel.getIsWriteHeader() 空指针的问题。 fixes #IBKSM0
This commit is contained in:
@@ -33,7 +33,9 @@ public class TestController {
|
||||
@RequestMapping("test")
|
||||
public SaResult test() {
|
||||
System.out.println("------------进来了 " + SaFoxUtil.formatDate(new Date()));
|
||||
StpUtil.getLoginId();
|
||||
// StpUtil.getLoginId();
|
||||
// StpUtil.getAnonTokenSession();
|
||||
StpUtil.setTokenValue("xxx");
|
||||
// 返回
|
||||
return SaResult.data(null);
|
||||
}
|
||||
|
Reference in New Issue
Block a user