Browse Source

[new]优化登录失效逻辑

zk 11 tháng trước cách đây
mục cha
commit
0d46219c9f
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;
     });