Skip to content

Commit

Permalink
fix: 未开启steam头像时图片失败
Browse files Browse the repository at this point in the history
  • Loading branch information
XasYer committed Dec 1, 2024
1 parent 10cfb83 commit 64b89d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const rule = {
const img = await Render.render('info/index', {
background: utils.getStaticUrl(bg.mini_profile_background.image_large),
frame: utils.getStaticUrl(bg.avatar_frame.image_small),
avatar: Config.other.steamAvatar ? info.avatarfull : utils.getUserAvatar(e.self_id, uid, e.group_id),
avatar: Config.other.steamAvatar ? info.avatarfull : await utils.getUserAvatar(e.self_id, uid, e.group_id),
name: info.personaname,
status: utils.getPersonaState(info.personastate),
gameId: info.gameid,
Expand Down

0 comments on commit 64b89d3

Please sign in to comment.