From 0c7c923a58c0868f722a7727e5bd9b1d5e0697a6 Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Thu, 11 Jul 2024 15:13:13 +0800 Subject: [PATCH] fix:gachalog weapon image --- lib/download.js | 4 ++-- lib/path.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/download.js b/lib/download.js index c5f3bf7..a1a201d 100644 --- a/lib/download.js +++ b/lib/download.js @@ -71,9 +71,9 @@ export const getSquareBangboo = async bangbooId => { * @returns Promise */ 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; diff --git a/lib/path.js b/lib/path.js index 1aee8aa..faf3b24 100644 --- a/lib/path.js +++ b/lib/path.js @@ -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');