diff --git a/src/rest/wechat/download.js b/src/rest/wechat/download.js index e94fa2c..67fc3e2 100644 --- a/src/rest/wechat/download.js +++ b/src/rest/wechat/download.js @@ -11,7 +11,9 @@ module.exports = { fse.pathExists(path, (err, exists) => { console.log(`${path}=========>${exists}`) if (exists) { - execute(`cd /root/node-service/wxmpZips&&zip -r ${appid}.zip ${path}`).then(() => { + execute(`cd ${path}&&zip -r ${appid}.zip .`) + .then(() => execute(`cd ${path}&&mv ${appid}.zip /root/node-service/wxmpZips`)) + .then(() => { console.log('压缩完成!') setTimeout(() => { response.download(zipPath)