fix: error

This commit is contained in:
手瓜一十雪 committed 2024-11-14 11:53:55 +08:00
1 parent bbeac86403
commit aee19abd10
10 files changed
+9 -265

No files matched your search

+1 -5
View File
@@ -41,14 +41,10 @@ export class NTQQFriendApi {
tempBothDel: tempBothDel
});
}
async getBuddyV2ExWithCate(refresh = false) {
const categoryMap: Map<string, any> = new Map();
async getBuddyV2ExWithCate() {
const buddyService = this.context.session.getBuddyService();
const buddyListV2 = (await buddyService.getBuddyListV2('0', BuddyListReqType.KNOMAL)).data;
const uids = buddyListV2.flatMap(item => {
item.buddyUids.forEach(uid => {
categoryMap.set(uid, { categoryId: item.categoryId, categoryName: item.categroyName });
});
return item.buddyUids;
});
const data = await this.core.eventWrapper.callNoListenerEvent(