Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2026-01-02 12:05:31 +08:00
parent 80e007bac6
commit 041af37bb0
67 changed files with 775 additions and 838 deletions

View File

@@ -100,15 +100,14 @@ class MineController extends CommonDataController<FavFolderData, FavFolderData>
Future<void> queryUserInfo() async {
final res = await UserHttp.userInfo();
if (res.isSuccess) {
UserInfoData data = res.data;
if (data.isLogin == true) {
userInfo.value = data;
if (data != Pref.userInfoCache) {
GStorage.userInfo.put('userInfoCache', data);
if (res case Success(:final response)) {
if (response.isLogin == true) {
userInfo.value = response;
if (response != Pref.userInfoCache) {
GStorage.userInfo.put('userInfoCache', response);
}
accountService
..face.value = data.face!
..face.value = response.face!
..isLogin.value = true;
} else {
LoginUtils.onLogoutMain();