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

@ -25,7 +25,10 @@ export class Abyss extends ZZZPlugin {
const method = this.e.msg.match(`(上期|往期)`)
? 'zzzChallengePeriod'
: 'zzzChallenge';
const abyssData = await api.getFinalData(this.e, method);
const abyssData = await api.getFinalData(method).catch(e => {
this.reply(e.message);
throw e;
});
if (!abyssData?.has_data) {
await this.reply('没有式舆防卫战数据');
return false;