fix:gachalog weapon image

This commit is contained in:
bietiaop 2024-07-11 15:13:13 +08:00
parent 1fb7a6ff54
commit 0c7c923a58
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -21,7 +21,7 @@ export const resourcesPath = path.join(pluginPath, 'resources');
export const imageResourcesPath = path.join(resourcesPath, 'images');
export const mapResourcesPath = path.join(resourcesPath, 'maps');
export const mapResourcesPath = path.join(resourcesPath, 'map');
// config 路径
export const configPath = path.join(pluginPath, 'config');