mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 05:37:46 +00:00
fix: 获取邦布头像(#84)
This commit is contained in:
parent
fd5e92a356
commit
fb7f746407
2 changed files with 9 additions and 2 deletions
|
|
@ -21,6 +21,7 @@ export const RESOURCE_PATH = {
|
||||||
role: 'role',
|
role: 'role',
|
||||||
role_circle: 'role_circle',
|
role_circle: 'role_circle',
|
||||||
weapon: 'weapon',
|
weapon: 'weapon',
|
||||||
|
square_bangbo: 'square_bangbo',
|
||||||
};
|
};
|
||||||
|
|
||||||
// 图鉴路径
|
// 图鉴路径
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,13 @@ export const getSmallSquareAvatar = async charID => {
|
||||||
*/
|
*/
|
||||||
export const getSquareBangboo = async bangbooId => {
|
export const getSquareBangboo = async bangbooId => {
|
||||||
const filename = `bangboo_rectangle_avatar_${bangbooId}.png`;
|
const filename = `bangboo_rectangle_avatar_${bangbooId}.png`;
|
||||||
const result = await downloadMysImage(
|
let result = await downloadResourceImage(
|
||||||
|
'square_bangbo',
|
||||||
|
'ZZZ_SQUARE_BANGBOO_PATH',
|
||||||
|
filename
|
||||||
|
);
|
||||||
|
if (!result)
|
||||||
|
result = await downloadMysImage(
|
||||||
'ZZZ_SQUARE_BANGBOO_V2',
|
'ZZZ_SQUARE_BANGBOO_V2',
|
||||||
'ZZZ_SQUARE_BANGBOO_PATH',
|
'ZZZ_SQUARE_BANGBOO_PATH',
|
||||||
filename
|
filename
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue