fix:修复某些登录问题

This commit is contained in:
Jerry 2025-10-01 00:44:49 +08:00
parent 7b0bc74755
commit 4a6bde2d0c

View File

@ -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);