satoken增加获取用户名方法

This commit is contained in:
张松
2025-02-21 09:50:41 +08:00
parent 5a78919b9b
commit 62b05eb0f3
4 changed files with 15 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ public class UserAuthorizationController {
*/
@PostMapping("/test")
public CzgResult<String> login() {
StpKit.USER.login(1L, null, MyStpLogic.LoginType.USER, false);
// StpKit.USER.login(1L, null, MyStpLogic.LoginType.USER, false);
return CzgResult.success(StpKit.USER.getTokenValue());
}
}