From adda71d265a79f8216d944c280023aa0ea58f812 Mon Sep 17 00:00:00 2001 From: Zyy955 <1072411694@qq.com> Date: Sat, 14 Oct 2023 19:43:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=96=B5=E5=B4=BD=E7=9A=84=E6=A4=B0?= =?UTF-8?q?=E5=A5=B6=E7=8A=B6=E6=80=81=E6=B7=BB=E5=8A=A0`ws-plugin`?= =?UTF-8?q?=E3=80=81=E9=A2=91=E9=81=93=E7=AD=89=E5=85=B6=E4=BB=96=E5=A4=9A?= =?UTF-8?q?bot=E7=9A=84=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/state.js b/apps/state.js index e1c5910..5464eb8 100644 --- a/apps/state.js +++ b/apps/state.js @@ -93,7 +93,7 @@ export class NewState extends plugin { // nodejs版本 const nodeVersion = process.version let BotStatus = "" - for (const i of e.msg.includes('pro') && Array.isArray(Bot.uin) ? Bot.uin : [e.self_id]) { + for (const i of e.msg.includes('pro') && Array.isArray(Bot.uin) ? Bot.uin : (Bot?.adapter ? Bot.adapter : [e.self_id])) { const bot = Bot[i] if (!bot?.uin) continue // 头像 From 20086984a8bcbf94cbb77f9a43dee598da9848d1 Mon Sep 17 00:00:00 2001 From: Zyy955 <1072411694@qq.com> Date: Sat, 14 Oct 2023 23:26:29 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8Dtrss=E6=A4=B0?= =?UTF-8?q?=E5=A5=B6=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/state.js b/apps/state.js index 5464eb8..91dd672 100644 --- a/apps/state.js +++ b/apps/state.js @@ -93,7 +93,7 @@ export class NewState extends plugin { // nodejs版本 const nodeVersion = process.version let BotStatus = "" - for (const i of e.msg.includes('pro') && Array.isArray(Bot.uin) ? Bot.uin : (Bot?.adapter ? Bot.adapter : [e.self_id])) { + for (const i of e.msg.includes('pro') && Array.isArray(Bot.uin) ? Bot.uin : (Bot?.adapter?.[Bot.uin] ? Bot.adapter : [e.self_id])) { const bot = Bot[i] if (!bot?.uin) continue // 头像 From dc61eb66d96e6fd8dffd53dcb249e333e7e8515d Mon Sep 17 00:00:00 2001 From: Zyy955 <1072411694@qq.com> Date: Sat, 14 Oct 2023 23:27:25 +0800 Subject: [PATCH 3/3] fix --- apps/state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/state.js b/apps/state.js index 91dd672..6f96f88 100644 --- a/apps/state.js +++ b/apps/state.js @@ -93,7 +93,7 @@ export class NewState extends plugin { // nodejs版本 const nodeVersion = process.version let BotStatus = "" - for (const i of e.msg.includes('pro') && Array.isArray(Bot.uin) ? Bot.uin : (Bot?.adapter?.[Bot.uin] ? Bot.adapter : [e.self_id])) { + for (const i of e.msg.includes('pro') && Array.isArray(Bot.uin) ? Bot.uin : (Bot?.adapter?.[Bot?.uin] ? Bot.adapter : [e.self_id])) { const bot = Bot[i] if (!bot?.uin) continue // 头像