mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 10:36:24 +08:00
chore: clean up
opt: pages Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -628,11 +628,9 @@ class LoginPageController extends GetxController
|
||||
break;
|
||||
default:
|
||||
SmartDialog.showToast(res['msg']);
|
||||
// login failed
|
||||
break;
|
||||
}
|
||||
}
|
||||
// });
|
||||
}
|
||||
|
||||
bool isGeeArgumentValid(String? geeGt, String? geeChallenge) {
|
||||
@@ -644,11 +642,7 @@ class LoginPageController extends GetxController
|
||||
Future<void> setAccount(Map tokenInfo, List cookieInfo) async {
|
||||
final account = LoginAccount(BiliCookieJar.fromList(cookieInfo),
|
||||
tokenInfo['access_token'], tokenInfo['refresh_token']);
|
||||
await Future.wait([
|
||||
account.onChange(),
|
||||
AnonymousAccount().delete()
|
||||
// .then((_) => Request.buvidActive(AnonymousAccount()))
|
||||
]);
|
||||
await Future.wait([account.onChange(), AnonymousAccount().delete()]);
|
||||
Accounts.accountMode.updateAll((_, a) => a == account ? account : a);
|
||||
if (Accounts.main.isLogin) {
|
||||
SmartDialog.showToast('登录成功');
|
||||
|
||||
Reference in New Issue
Block a user