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