Переглянути джерело

[new]优化登录失效逻辑

zk 11 місяців тому
батько
коміт
0d46219c9f
1 змінених файлів з 3 додано та 0 видалено
  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;
     });