Merge pull request #206 from pohgxz/main

修复webui快捷登录失败
This commit is contained in:
手瓜一十雪 2024-08-04 14:15:53 +08:00 committed by GitHub
commit 143380c012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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