Procházet zdrojové kódy

[new]优化登录失效逻辑

zk před 1 rokem
rodič
revize
0d46219c9f
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      lib/data/repositories/account_repository.dart

+ 3 - 0
lib/data/repositories/account_repository.dart

@@ -94,6 +94,9 @@ class AccountRepository {
         .userInfo(AppBaseRequest())
         .then(HttpHandler.handle(false))
         .then((response) {
+      if (response.loginStatus == 0) {
+        logout();
+      }
       _userInfo.value = response;
       return response;
     });