Sfoglia il codice sorgente

[new]优化登录失效逻辑

zk 11 mesi fa
parent
commit
0d46219c9f
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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;
     });