update 优化 isLogin 判断逻辑

This commit is contained in:
疯狂的狮子Li
2025-07-31 10:20:49 +08:00
parent 3f1e97da2b
commit 4a637756bb

View File

@@ -207,7 +207,8 @@ public class LoginHelper {
*/
public static boolean isLogin() {
try {
return getLoginUser() != null;
StpUtil.checkLogin();
return true;
} catch (Exception e) {
return false;
}