mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
fix: revert get_friends_with_category return type
This commit is contained in:
@@ -8,7 +8,10 @@ export class GetFriendWithCategory extends BaseAction<void, any> {
|
||||
async _handle(payload: void) {
|
||||
if (this.CoreContext.context.basicInfoWrapper.requireMinNTQQBuild('26702')) {
|
||||
//全新逻辑
|
||||
return OB11Constructor.friendsV2(await this.CoreContext.apis.FriendApi.getBuddyV2ExWithCate(true));
|
||||
return (await this.CoreContext.apis.FriendApi.getBuddyV2ExWithCate(true)).map(category => ({
|
||||
...category,
|
||||
buddyList: OB11Constructor.friendsV2(category.buddyList),
|
||||
}));
|
||||
} else {
|
||||
throw new Error('this ntqq version not support, must be 26702 or later');
|
||||
}
|
||||
|
||||
@@ -656,8 +656,6 @@ export class OB11Constructor {
|
||||
remark: friend.coreInfo.nick,
|
||||
sex: sexValue,
|
||||
level: 0,
|
||||
categroyName: friend.categroyName,
|
||||
categoryId: friend.categoryId,
|
||||
});
|
||||
});
|
||||
return data;
|
||||
|
||||
@@ -7,7 +7,7 @@ export interface OB11User {
|
||||
age?: number;
|
||||
qid?: string;
|
||||
login_days?: number;
|
||||
categroyName?: string;
|
||||
categoryName?: string;
|
||||
categoryId?: number;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user