mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix:部分逻辑
This commit is contained in:
parent
800bc15007
commit
c5d9131c1d
9 changed files with 56 additions and 30 deletions
14
apps/card.js
14
apps/card.js
|
|
@ -20,22 +20,28 @@ export class Card extends ZZZPlugin {
|
|||
});
|
||||
}
|
||||
async card() {
|
||||
const { api } = await this.getAPI();
|
||||
const { api, deviceFp } = await this.getAPI();
|
||||
await this.getPlayerInfo();
|
||||
const indexData = await api.getFinalData('zzzIndex').catch(e => {
|
||||
const indexData = await api.getFinalData('zzzIndex', {
|
||||
deviceFp,
|
||||
}).catch(e => {
|
||||
this.reply(e.message);
|
||||
throw e;
|
||||
});
|
||||
if (!indexData) return false;
|
||||
|
||||
let zzzAvatarList = await api.getFinalData('zzzAvatarList').catch(e => {
|
||||
let zzzAvatarList = await api.getFinalData('zzzAvatarList', {
|
||||
deviceFp,
|
||||
}).catch(e => {
|
||||
this.reply(e.message);
|
||||
throw e;
|
||||
});
|
||||
if (!zzzAvatarList) return false;
|
||||
indexData.avatar_list = zzzAvatarList.avatar_list;
|
||||
|
||||
let zzzBuddyList = await api.getFinalData('zzzBuddyList').catch(e => {
|
||||
let zzzBuddyList = await api.getFinalData('zzzBuddyList', {
|
||||
deviceFp,
|
||||
}).catch(e => {
|
||||
this.reply(e.message);
|
||||
throw e;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue