From c764ecc9f99a643a11f1ec96217cdbe52fa95105 Mon Sep 17 00:00:00 2001 From: Jerryplusy Date: Sun, 5 Oct 2025 23:07:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/auth-set.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/auth-set.js b/apps/auth-set.js index aef7ec1..cdf450a 100644 --- a/apps/auth-set.js +++ b/apps/auth-set.js @@ -38,7 +38,8 @@ export class carbonAuthSetting extends plugin { return e.reply('只有群主或管理员可以设置验证..', true); const botMember = await e.group?.pickMember?.(e.bot.uin); const info = await botMember?.getInfo(); - if (info.role !== 'admin' || info.role !== 'owner') { + //logger.info(info.role); + if (info.role !== 'admin' && info.role !== 'owner') { return e.reply(`${ConfigControl.get('profile')?.nickName}不是管理,没法帮你验证啦..`, true); } const { cfg, groupCfg } = await this._getCfg(e);