Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-08 11:40:03 +08:00
parent 01a1cb2dce
commit 22fc256d8a
3 changed files with 54 additions and 15 deletions

View File

@@ -67,11 +67,16 @@ abstract final class LoginUtils {
}
} else {
// 获取用户信息失败
await Accounts.deleteAll({account});
SmartDialog.showNotify(
msg: '登录失败请检查cookie是否正确${res.toString()}',
notifyType: NotifyType.warning,
);
final errMsg = res.toString();
if (errMsg == '账号未登录') {
await Accounts.deleteAll({account});
SmartDialog.showNotify(
msg: '登录失败请检查cookie是否正确$errMsg',
notifyType: .warning,
);
} else {
SmartDialog.showToast(errMsg);
}
}
}