mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
修复更新后trss无法快捷登陆面板问题
This commit is contained in:
parent
dd4476322f
commit
065d377bd0
1 changed files with 6 additions and 1 deletions
|
|
@ -57,6 +57,7 @@ async function User (fastify, options) {
|
|||
// 快速登录
|
||||
fastify.post('/quick', async (request, reply) => {
|
||||
const otp = randomString(6)
|
||||
const isTrss = Array.isArray(Bot.uin)
|
||||
await redis.set(
|
||||
'CHATGPT:SERVER_QUICK',
|
||||
otp,
|
||||
|
|
@ -65,7 +66,11 @@ async function User (fastify, options) {
|
|||
const master = (await getMasterQQ())[0]
|
||||
let bots = getBots()
|
||||
for (let bot of bots) {
|
||||
bot.pickUser(master).sendMsg(`收到工具箱快捷登录请求,1分钟内有效:${otp}`)
|
||||
if(isTrss) {
|
||||
bot.pickFriend(master).sendMsg(`收到工具箱快捷登录请求,1分钟内有效:${otp}`)
|
||||
} else {
|
||||
bot.pickUser(master).sendMsg(`收到工具箱快捷登录请求,1分钟内有效:${otp}`)
|
||||
}
|
||||
}
|
||||
reply.send({ state: true })
|
||||
return reply
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue