fix:部分逻辑

This commit is contained in:
kissnavel 2025-05-17 19:46:53 +08:00
parent 800bc15007
commit c5d9131c1d
9 changed files with 56 additions and 30 deletions

View file

@ -60,11 +60,11 @@ export class Panel extends ZZZPlugin {
await this.reply(`${coldTime}秒内只能刷新一次,请稍后再试`);
return false;
}
const { api } = await this.getAPI();
const { api, deviceFp } = await this.getAPI();
await redis.set(`ZZZ:PANEL:${uid}:LASTTIME`, Date.now());
await this.reply('正在刷新面板列表,请稍候...');
await this.getPlayerInfo();
const result = await refreshPanelFunction(api).catch(e => {
const result = await refreshPanelFunction(api, deviceFp).catch(e => {
this.reply(e.message);
throw e;
});