refactor: 重构lib代码(无实质性功能更新,可不更新)

This commit is contained in:
bietiaop 2024-08-22 13:34:08 +08:00
parent a7f06d404b
commit aa3b7928ec
26 changed files with 547 additions and 483 deletions

View file

@ -53,7 +53,10 @@ export class Panel extends ZZZPlugin {
await redis.set(`ZZZ:PANEL:${uid}:LASTTIME`, Date.now());
await this.reply('正在刷新面板列表,请稍候...');
await this.getPlayerInfo();
const result = await refreshPanel(this.e, api, uid);
const result = await refreshPanel(api, uid).catch(e => {
this.reply(e.message);
throw e;
});
if (!result) {
await this.reply('面板列表刷新失败,请稍后再试');
return false;