fix: 部分逻辑

This commit is contained in:
bietiaop 2024-08-19 22:39:21 +08:00
parent 34cd8b15dc
commit 70836ab785
9 changed files with 204 additions and 173 deletions

View file

@ -21,12 +21,9 @@ export class Note extends ZZZPlugin {
});
}
async note() {
const { api, deviceFp } = await this.getAPI();
if (!api) return false;
const { api } = await this.getAPI();
await this.getPlayerInfo();
const noteResponse = await api.getFinalData(this.e, 'zzzNote', {
deviceFp,
});
const noteResponse = await api.getFinalData(this.e, 'zzzNote');
if (!noteResponse) return false;
const noteData = new ZZZNoteResp(noteResponse);
const finalData = {