fix: 获取邦布头像(#84)

This commit is contained in:
bietiaop 2024-12-20 08:39:10 +08:00
parent fd5e92a356
commit fb7f746407
2 changed files with 9 additions and 2 deletions

View file

@ -44,11 +44,17 @@ export const getSmallSquareAvatar = async charID => {
*/
export const getSquareBangboo = async bangbooId => {
const filename = `bangboo_rectangle_avatar_${bangbooId}.png`;
const result = await downloadMysImage(
'ZZZ_SQUARE_BANGBOO_V2',
let result = await downloadResourceImage(
'square_bangbo',
'ZZZ_SQUARE_BANGBOO_PATH',
filename
);
if (!result)
result = await downloadMysImage(
'ZZZ_SQUARE_BANGBOO_V2',
'ZZZ_SQUARE_BANGBOO_PATH',
filename
);
return result;
};