From f429db61af95483a153780ccec649d46793d6d85 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 Dec 2024 17:16:58 +0800 Subject: [PATCH] fix: #594 --- src/core/apis/user.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/apis/user.ts b/src/core/apis/user.ts index 2e4a96cd..cbb62699 100644 --- a/src/core/apis/user.ts +++ b/src/core/apis/user.ts @@ -181,13 +181,13 @@ export class NTQQUserApi { //后期改成流水线处理 async getUinByUidV2(Uid: string) { let uin = (await this.context.session.getGroupService().getUinByUids([Uid])).uins.get(Uid); - if (uin) return uin; + if (uin && uin !== '0') return uin; uin = (await this.context.session.getProfileService().getUinByUid('FriendsServiceImpl', [Uid])).get(Uid); - if (uin) return uin; + if (uin && uin !== '0') return uin; uin = (await this.context.session.getUixConvertService().getUin([Uid])).uinInfo.get(Uid); - if (uin) return uin; + if (uin && uin !== '0') return uin; uin = (await this.core.apis.FriendApi.getBuddyIdMap(true)).getKey(Uid); - if (uin) return uin; + if (uin && uin !== '0') return uin; uin = (await this.getUserDetailInfo(Uid)).uin; //从QQ Native 转换 return uin; }