mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: logout
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -59,12 +59,16 @@ class MineController extends GetxController {
|
|||||||
isLogin.value = true;
|
isLogin.value = true;
|
||||||
} else {
|
} else {
|
||||||
LoginUtils.onLogout();
|
LoginUtils.onLogout();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SmartDialog.showToast(res['msg']);
|
SmartDialog.showToast(res['msg']);
|
||||||
|
if (res['msg'] == '账号未登录') {
|
||||||
|
LoginUtils.onLogout();
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
await queryUserStatOwner();
|
queryUserStatOwner();
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future queryUserStatOwner() async {
|
Future queryUserStatOwner() async {
|
||||||
@@ -72,7 +76,6 @@ class MineController extends GetxController {
|
|||||||
if (res['status']) {
|
if (res['status']) {
|
||||||
userStat.value = res['data'];
|
userStat.value = res['data'];
|
||||||
}
|
}
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static onChangeAnonymity(BuildContext context) {
|
static onChangeAnonymity(BuildContext context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user