修复webui快捷登录失败

This commit is contained in:
Nepenthe 2024-08-04 13:04:31 +08:00
parent 3db74c3427
commit 0ca6343ed7

View File

@ -92,9 +92,9 @@ napCatCore.getQuickLoginList().then((res) => {
WebUiDataRuntime.setQQQuickLoginCall(async (uin: string) => { WebUiDataRuntime.setQQQuickLoginCall(async (uin: string) => {
const QuickLogin: Promise<{ result: boolean, message: string }> = new Promise((resolve, reject) => { const QuickLogin: Promise<{ result: boolean, message: string }> = new Promise((resolve, reject) => {
if (quickLoginQQ) { if (uin) {
log('正在快速登录 ', quickLoginQQ); log('正在快速登录 ', uin);
napCatCore.quickLogin(quickLoginQQ).then(res => { napCatCore.quickLogin(uin).then(res => {
if (res.loginErrorInfo.errMsg) { if (res.loginErrorInfo.errMsg) {
resolve({ result: false, message: res.loginErrorInfo.errMsg }); resolve({ result: false, message: res.loginErrorInfo.errMsg });
} }