feat: card

This commit is contained in:
bietiaop 2024-07-09 10:30:33 +08:00
parent cd0793655d
commit ce3c509cd9
43 changed files with 508 additions and 7 deletions

View file

@ -22,8 +22,8 @@ export class Note extends ZZZPlugin {
}
async note() {
const { api, deviceFp } = await this.getAPI();
const userData = await this.getPlayerInfo();
if (!userData) return false;
if (!api) return false;
await this.getPlayerInfo();
let noteData = await api.getData('zzzNote', { deviceFp });
noteData = await api.checkCode(this.e, noteData, 'zzzNote', {});
if (!noteData || noteData.retcode !== 0) {