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
61cec10da1
commit
1b447b29fa
@ -225,7 +225,7 @@ export default class LoginService extends plugin {
|
||||
}
|
||||
|
||||
const qrPath = await loginInstance.login(qq, nickname);
|
||||
if (qrPath) {
|
||||
if (qrPath || qrPath !== 'none') {
|
||||
e.reply(segment.image(qrPath), true);
|
||||
const timerKey = `login:timer:${qq}`;
|
||||
await redis.set(timerKey, 120, 'pending');
|
||||
|
||||
@ -43,7 +43,7 @@ export default class NapcatService {
|
||||
}
|
||||
}
|
||||
if (!fs.existsSync(shFile)) {
|
||||
const scriptContent = `#!/bin/bash\ncd "${this.basePath}"\n./napcat --qq ${qq}\n`;
|
||||
const scriptContent = `#!/bin/bash\nxvfb-run -a qq --no-sandbox -q ${qq}\n`;
|
||||
fs.writeFileSync(shFile, scriptContent, { mode: 0o755 });
|
||||
}
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user