mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: gacha
This commit is contained in:
parent
08c15fd378
commit
f838c0823d
11 changed files with 249 additions and 23 deletions
|
|
@ -1,4 +1,8 @@
|
|||
import { getSquareAvatar, getSquareBangboo } from '../lib/download.js';
|
||||
import {
|
||||
getSquareAvatar,
|
||||
getSquareBangboo,
|
||||
getWeaponImage,
|
||||
} from '../lib/download.js';
|
||||
|
||||
/**
|
||||
* @class
|
||||
|
|
@ -59,6 +63,8 @@ export class SingleGachaLog {
|
|||
|
||||
async get_assets() {
|
||||
if (this.item_type === '音擎') {
|
||||
const result = await getWeaponImage(this.item_id);
|
||||
this.square_icon = result;
|
||||
} else if (this.item_type === '邦布') {
|
||||
const result = await getSquareBangboo(this.item_id);
|
||||
this.square_icon = result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue