mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix: 获取邦布头像(#84)
This commit is contained in:
parent
fd5e92a356
commit
fb7f746407
2 changed files with 9 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue