From 4a6bde2d0ca93d2adf170767179cce03e56ffcb5 Mon Sep 17 00:00:00 2001 From: Jerryplusy Date: Wed, 1 Oct 2025 00:44:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/login.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/login.js b/apps/login.js index 089d7fe..c19f598 100644 --- a/apps/login.js +++ b/apps/login.js @@ -225,10 +225,10 @@ export default class LoginService extends plugin { } const qrPath = await loginInstance.login(qq, nickname); - if (qrPath || qrPath !== 'none') { - e.reply(segment.image(`file:///${qrPath}`), true); + if (qrPath && qrPath !== 'none') { + await e.reply(segment.image(`file:///${qrPath}`), true); const timerKey = `login:timer:${qq}`; - await redis.set(timerKey, 120, 'pending'); + await redis.set(timerKey, 'pending', 120); const check = setInterval(async () => { const status = await loginInstance.checkStatus(qq);