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

@ -20,12 +20,14 @@ export class Abyss extends ZZZPlugin {
});
}
async abyss() {
const { api } = await this.getAPI();
const { api, deviceFp } = await this.getAPI();
await this.getPlayerInfo();
const method = this.e.msg.match(`(上期|往期)`)
? 'zzzChallengePeriod'
: 'zzzChallenge';
const abyssData = await api.getFinalData(method).catch(e => {
const abyssData = await api.getFinalData(method, {
deviceFp,
}).catch(e => {
this.reply(e.message);
throw e;
});