mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix
This commit is contained in:
parent
f0d8c851d4
commit
5cc8a2b96e
@ -203,11 +203,20 @@ export class NTQQUserApi extends Service {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!uid) {
|
if (!uid) {
|
||||||
let unveifyUid = (await this.getUserDetailInfoByUin(uin)).info.uid //从QQ Native 特殊转换 方法三
|
let unveifyUid = (await this.getUserDetailInfoByUin(uin)).info.uid //特殊转换
|
||||||
if (unveifyUid.indexOf('*') == -1) {
|
if (unveifyUid.indexOf('*') === -1) {
|
||||||
uid = unveifyUid
|
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
|
return uid
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user