mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
排名获取头像失败,导致发图失败 (#607)
This commit is contained in:
parent
68db81a93c
commit
ba3df37504
@ -201,14 +201,18 @@ async function renderCharRankList ({ e, uids, char, mode, groupId }) {
|
||||
}
|
||||
if (uid) {
|
||||
let userInfo = await ProfileRank.getUidInfo(uid)
|
||||
if (userInfo?.qq && e?.group?.pickMember) {
|
||||
let member = e.group.pickMember(userInfo.qq)
|
||||
if (member?.getAvatarUrl) {
|
||||
let img = await member.getAvatarUrl()
|
||||
if (img) {
|
||||
tmp.qqFace = img
|
||||
try {
|
||||
if (userInfo?.qq && e?.group?.pickMember) {
|
||||
let member = e.group.pickMember(userInfo.qq)
|
||||
if (member?.getAvatarUrl) {
|
||||
let img = await member.getAvatarUrl()
|
||||
if (img) {
|
||||
tmp.qqFace = img
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
// console.log(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user