From 38f6dad1181483f079bbb2ee71476166ce08c217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Tue, 3 Feb 2026 22:56:12 +0800 Subject: [PATCH] Lower NTQQ build check from 41679 to 39038 Update NTQQFriendApi to use a lower minimum NTQQ build threshold (39038) when deciding which buddyListV2 API path to call. The change replaces occurrences of '41679' with '39038' in packages/napcat-core/apis/friend.ts (affecting getBuddyV2SimpleInfoMap and the buddyListV2 retrieval logic) to broaden compatibility with older NTQQ builds. --- packages/napcat-core/apis/friend.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/napcat-core/apis/friend.ts b/packages/napcat-core/apis/friend.ts index a9c7b272..d3ea5d1f 100644 --- a/packages/napcat-core/apis/friend.ts +++ b/packages/napcat-core/apis/friend.ts @@ -18,7 +18,7 @@ export class NTQQFriendApi { async getBuddyV2SimpleInfoMap () { const buddyService = this.context.session.getBuddyService(); let uids: string[] = []; - if (this.core.context.basicInfoWrapper.requireMinNTQQBuild('41679')) { + if (this.core.context.basicInfoWrapper.requireMinNTQQBuild('39038')) { const buddyListV2NT = await buddyService.getBuddyListV2('0', true, BuddyListReqType.KNOMAL); uids = buddyListV2NT.data.flatMap(item => item.buddyUids); } else { @@ -55,7 +55,7 @@ export class NTQQFriendApi { const buddyService = this.context.session.getBuddyService(); let uids: string[] = []; let buddyListV2: Awaited>['data']; - if (this.core.context.basicInfoWrapper.requireMinNTQQBuild('41679')) { + if (this.core.context.basicInfoWrapper.requireMinNTQQBuild('39038')) { buddyListV2 = (await buddyService.getBuddyListV2('0', true, BuddyListReqType.KNOMAL)).data; uids = buddyListV2.flatMap(item => item.buddyUids); } else {