diff --git a/lib/download.js b/lib/download.js index 79b2736..2a06505 100644 --- a/lib/download.js +++ b/lib/download.js @@ -1,14 +1,14 @@ import path from 'path'; import fs from 'fs'; import { ZZZ_SQUARE_AVATAR, ZZZ_SQUARE_BANGBOO } from './mysapi/api.js'; -import { resourcesPath } from './path.js'; +import { imageResourcesPath } from './path.js'; -const ZZZ_SQUARE_AVATAR_PATH = path.join(resourcesPath, 'square_avatar'); +const ZZZ_SQUARE_AVATAR_PATH = path.join(imageResourcesPath, 'square_avatar'); const ZZZ_SQUARE_BANGBOO_PATH = path.join( - resourcesPath, + imageResourcesPath, 'bangboo_square_avatar' ); -const ZZZ_GUIDES_PATH = path.join(resourcesPath, 'guides'); +const ZZZ_GUIDES_PATH = path.join(imageResourcesPath, 'guides'); /** * diff --git a/lib/path.js b/lib/path.js index 53eff54..f776a78 100644 --- a/lib/path.js +++ b/lib/path.js @@ -19,6 +19,8 @@ export const appPath = path.join(pluginPath, 'apps'); // resources export const resourcesPath = path.join(pluginPath, 'resources'); +export const imageResourcesPath = path.join(resourcesPath, 'images'); + // config 路径 export const configPath = path.join(pluginPath, 'config');