mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix:gachalog weapon image
This commit is contained in:
parent
1fb7a6ff54
commit
0c7c923a58
2 changed files with 3 additions and 3 deletions
|
|
@ -71,9 +71,9 @@ export const getSquareBangboo = async bangbooId => {
|
|||
* @returns Promise<string>
|
||||
*/
|
||||
export const getWeaponImage = async id => {
|
||||
logger.mark('getWeaponImage', id);
|
||||
logger.debug('getWeaponImage', id);
|
||||
const name = weapon.IDToWeaponFileName(id);
|
||||
logger.mark('getWeaponImage', name);
|
||||
logger.debug('getWeaponImage', name);
|
||||
const filename = `${name}.png`;
|
||||
const weaponPath = path.join(ZZZ_WEAPON_PATH, filename);
|
||||
if (fs.existsSync(weaponPath)) return weaponPath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue