This commit is contained in:
idranme 2024-09-02 01:46:08 +08:00
parent f0d8c851d4
commit 5cc8a2b96e
No known key found for this signature in database
GPG Key ID: 926F7B5B668E495F

View File

@ -203,11 +203,20 @@ export class NTQQUserApi extends Service {
}
}
if (!uid) {
let unveifyUid = (await this.getUserDetailInfoByUin(uin)).info.uid //从QQ Native 特殊转换 方法三
if (unveifyUid.indexOf('*') == -1) {
let unveifyUid = (await this.getUserDetailInfoByUin(uin)).info.uid //特殊转换
if (unveifyUid.indexOf('*') === -1) {
uid = unveifyUid
}
}
if (!uid) {
const friends = await this.ctx.ntFriendApi.getFriends() //从好友列表转
for (const item of friends) {
if (item.uin === uin) {
uid = item.uid
break
}
}
}
return uid
}