From e83f36a12f974392d17efc66dd75b49327a485fc Mon Sep 17 00:00:00 2001 From: linyuchen Date: Mon, 29 Apr 2024 11:45:43 +0800 Subject: [PATCH] refactor: show quick login error --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b0c795f1..ae03678f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -56,7 +56,9 @@ const quickLoginQQ = cmdOptions.qq; if (quickLoginQQ) { log('正在快速登录 ', quickLoginQQ); napCatCore.quickLogin(quickLoginQQ).then(res=>{ - logDebug('快速登录结果:', res); + if (res.loginErrorInfo.errMsg){ + logError('快速登录错误:', res.loginErrorInfo.errMsg); + } }).catch((e) => { console.error(e); napCatCore.qrLogin().then(showQRCode);