chore: 进一步清理无用代码
This commit is contained in:
1 parent
dadb44ada2
commit
57ca8c3609
1 file changed
+1
-19
+1
-19
@@ -127,25 +127,7 @@ export class NTQQUserApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getUserDetailInfo(uid: string) {
|
async getUserDetailInfo(uid: string) {
|
||||||
if (this.context.basicInfoWrapper.requireMinNTQQBuild('26702')) {
|
return this.fetchUserDetailInfo(uid);
|
||||||
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<EventService, EventListener>(
|
|
||||||
'NodeIKernelProfileService/getUserDetailInfoWithBizInfo',
|
|
||||||
'NodeIKernelProfileListener/onProfileDetailInfoChanged',
|
|
||||||
2,
|
|
||||||
5000,
|
|
||||||
(profile) => profile.uid === uid,
|
|
||||||
uid,
|
|
||||||
[0],
|
|
||||||
);
|
|
||||||
return profile;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async modifySelfProfile(param: ModifyProfileParams) {
|
async modifySelfProfile(param: ModifyProfileParams) {
|
||||||
|
|||||||
Reference in new issue
Block a user