fix 修复 isLogin 方法抛异常无法正常返回值问题
parent
e6c5d67327
commit
8fa4f3b448
|
|
@ -193,7 +193,11 @@ public class LoginHelper {
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public static boolean isLogin() {
|
public static boolean isLogin() {
|
||||||
return getLoginUser() != null;
|
try {
|
||||||
|
return getLoginUser() != null;
|
||||||
|
} catch (Exception e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue