From 6a859a8dca61fdbcf3fc7abe5b06713637c6af55 Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Mon, 3 Mar 2025 11:32:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(#92):=20=E6=97=A0=E6=B3=95=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/panel.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/panel.js b/apps/panel.js index 945b142..5b04d0a 100644 --- a/apps/panel.js +++ b/apps/panel.js @@ -32,8 +32,10 @@ export class Panel extends ZZZPlugin { fnc: 'getCharOriImage', }, ], - handler: [{ key: 'zzz.tool.panel', fn: 'getCharPanelTool' }], - handler: [{ key: 'zzz.tool.panelList', fn: 'getCharPanelListTool' }], + handler: [ + { key: 'zzz.tool.panel', fn: 'getCharPanelTool' }, + { key: 'zzz.tool.panelList', fn: 'getCharPanelListTool' }, + ], }); } async handleRule() { @@ -124,7 +126,8 @@ export class Panel extends ZZZPlugin { await this.reply(`未找到角色${name}的面板信息,请先刷新面板`); return; } - let handler = this.e.runtime?.handler || {}; + let handler = this.e.runtime.handler || {}; + if (handler.has('zzz.tool.panel')) { await handler.call('zzz.tool.panel', this.e, { uid,