From 065d377bd06b3296ae0cc9157f578148840db14c Mon Sep 17 00:00:00 2001 From: zyc404 Date: Fri, 8 Dec 2023 10:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0=E5=90=8Etr?= =?UTF-8?q?ss=E6=97=A0=E6=B3=95=E5=BF=AB=E6=8D=B7=E7=99=BB=E9=99=86?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/modules/user.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/modules/user.js b/server/modules/user.js index 38b9830..78bf7fc 100644 --- a/server/modules/user.js +++ b/server/modules/user.js @@ -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