mirror of
https://github.com/crystelf/crystelf-admin.git
synced 2025-12-05 13:41:57 +00:00
fix:修复某些登录问题
This commit is contained in:
parent
7b0bc74755
commit
4a6bde2d0c
@ -225,10 +225,10 @@ export default class LoginService extends plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const qrPath = await loginInstance.login(qq, nickname);
|
const qrPath = await loginInstance.login(qq, nickname);
|
||||||
if (qrPath || qrPath !== 'none') {
|
if (qrPath && qrPath !== 'none') {
|
||||||
e.reply(segment.image(`file:///${qrPath}`), true);
|
await e.reply(segment.image(`file:///${qrPath}`), true);
|
||||||
const timerKey = `login:timer:${qq}`;
|
const timerKey = `login:timer:${qq}`;
|
||||||
await redis.set(timerKey, 120, 'pending');
|
await redis.set(timerKey, 'pending', 120);
|
||||||
|
|
||||||
const check = setInterval(async () => {
|
const check = setInterval(async () => {
|
||||||
const status = await loginInstance.checkStatus(qq);
|
const status = await loginInstance.checkStatus(qq);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user