update 优化 isLogin 判断逻辑
This commit is contained in:
parent
0d93589d99
commit
076a0a44fa
|
|
@ -207,7 +207,8 @@ public class LoginHelper {
|
||||||
*/
|
*/
|
||||||
public static boolean isLogin() {
|
public static boolean isLogin() {
|
||||||
try {
|
try {
|
||||||
return getLoginUser() != null;
|
StpUtil.checkLogin();
|
||||||
|
return true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue