fix(#92): 无法查看面板

This commit is contained in:
bietiaop 2025-03-03 11:32:12 +08:00
parent b6d0bb165a
commit 6a859a8dca

View file

@ -32,8 +32,10 @@ export class Panel extends ZZZPlugin {
fnc: 'getCharOriImage', fnc: 'getCharOriImage',
}, },
], ],
handler: [{ key: 'zzz.tool.panel', fn: 'getCharPanelTool' }], handler: [
handler: [{ key: 'zzz.tool.panelList', fn: 'getCharPanelListTool' }], { key: 'zzz.tool.panel', fn: 'getCharPanelTool' },
{ key: 'zzz.tool.panelList', fn: 'getCharPanelListTool' },
],
}); });
} }
async handleRule() { async handleRule() {
@ -124,7 +126,8 @@ export class Panel extends ZZZPlugin {
await this.reply(`未找到角色${name}的面板信息,请先刷新面板`); await this.reply(`未找到角色${name}的面板信息,请先刷新面板`);
return; return;
} }
let handler = this.e.runtime?.handler || {}; let handler = this.e.runtime.handler || {};
if (handler.has('zzz.tool.panel')) { if (handler.has('zzz.tool.panel')) {
await handler.call('zzz.tool.panel', this.e, { await handler.call('zzz.tool.panel', this.e, {
uid, uid,