feat: 小调整

This commit is contained in:
曹鹏飞 2024-05-25 12:07:11 +08:00
parent 30b2073999
commit 63ed4ef299
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public class SessionUtil {
return getUser().getSessionKey();
}
private static LoginUserInfoDTO getUser() {
public static LoginUserInfoDTO getUser() {
return Optional.ofNullable(BaseApi.loginUser.get())
.orElseThrow(() -> new NflgBusinessException(STATE.LoginError, "请登录"));
}