mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
optimize
This commit is contained in:
parent
5cc8a2b96e
commit
a7da7ab598
@ -203,19 +203,14 @@ export class NTQQUserApi extends Service {
|
||||
}
|
||||
}
|
||||
if (!uid) {
|
||||
let unveifyUid = (await this.getUserDetailInfoByUin(uin)).info.uid //特殊转换
|
||||
const 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
|
||||
}
|
||||
}
|
||||
uid = friends.find(item => item.uin === uin)?.uid
|
||||
}
|
||||
return uid
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user