mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-11-30 01:00:07 +08:00
fix 修复 isLogin 方法抛异常无法正常返回值问题
This commit is contained in:
@@ -193,7 +193,11 @@ public class LoginHelper {
|
||||
* @return 结果
|
||||
*/
|
||||
public static boolean isLogin() {
|
||||
return getLoginUser() != null;
|
||||
try {
|
||||
return getLoginUser() != null;
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user