From 56f8314d29866f72620b5ab0fc65ef9f99b3a860 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: Thu, 15 Aug 2024 11:10:02 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=BF=9B=E4=B8=80=E6=AD=A5=E6=B8=85?= =?UTF-8?q?=E7=90=86=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/apis/user.ts | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/core/apis/user.ts b/src/core/apis/user.ts index 15c140a3..a91c3db8 100644 --- a/src/core/apis/user.ts +++ b/src/core/apis/user.ts @@ -127,25 +127,7 @@ export class NTQQUserApi { } async getUserDetailInfo(uid: string) { - if (this.context.basicInfoWrapper.requireMinNTQQBuild('26702')) { - return this.fetchUserDetailInfo(uid); - } - return this.getUserDetailInfoOld(uid); - } - - async getUserDetailInfoOld(uid: string) { - type EventService = NodeIKernelProfileService['getUserDetailInfoWithBizInfo']; - type EventListener = NodeIKernelProfileListener['onProfileDetailInfoChanged']; - const [_retData, profile] = await this.core.eventWrapper.CallNormalEvent( - 'NodeIKernelProfileService/getUserDetailInfoWithBizInfo', - 'NodeIKernelProfileListener/onProfileDetailInfoChanged', - 2, - 5000, - (profile) => profile.uid === uid, - uid, - [0], - ); - return profile; + return this.fetchUserDetailInfo(uid); } async modifySelfProfile(param: ModifyProfileParams) {