From bc76415d6f88a2a63d2d75b0b81f67e977dd2b89 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 17 Jun 2022 15:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=8B=E8=BD=BD=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/wechat/download.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest/wechat/download.js b/src/rest/wechat/download.js index 67fc3e2..a169539 100644 --- a/src/rest/wechat/download.js +++ b/src/rest/wechat/download.js @@ -6,13 +6,13 @@ module.exports = { execute: (request, response) => { let appid = request.query?.appid if (appid) { - let path = `/root/node-service/wxmpZips/${appid}/`, zipPath = `../wxmpZips/${appid}.zip` + let path = `/home/deploy/wxmpZips/${appid}/`, zipPath = `/home/deploy/wxmpZips/${appid}.zip` fse.removeSync(zipPath) fse.pathExists(path, (err, exists) => { console.log(`${path}=========>${exists}`) if (exists) { execute(`cd ${path}&&zip -r ${appid}.zip .`) - .then(() => execute(`cd ${path}&&mv ${appid}.zip /root/node-service/wxmpZips`)) + .then(() => execute(`cd ${path}&&mv ${appid}.zip /home/deploy/wxmpZips`)) .then(() => { console.log('压缩完成!') setTimeout(() => {