diff --git a/src/rest/wechat/getZip.js b/src/rest/wechat/getZip.js index 8e04a5c..54cf7bb 100644 --- a/src/rest/wechat/getZip.js +++ b/src/rest/wechat/getZip.js @@ -19,8 +19,8 @@ module.exports = { }, 2000)) execute(`cd ${info.projectPath || '/root/node-service/dvcp_v2_wechat'}&&npm run apps&&node bin/pages.js ${id}&&npm run build`) .then(() => fse.emptyDir(`../wxmpZips/${id}/`)) - .then(() => fse.copy('../dvcp_v2_wechat/dist/build/mp-weixin/', `../wxmpZips/${id}/`)) - .then(() => fse.emptyDir('../dvcp_v2_wechat/dist/build')) + .then(() => fse.copy(`${info.projectPath || '/root/node-service/dvcp_v2_wechat'}/dist/build/mp-weixin/`, `../wxmpZips/${id}/`)) + .then(() => fse.emptyDir(`${info.projectPath || '/root/node-service/dvcp_v2_wechat'}/dist/build`)) .then(() => { db.query(`update node_wxmp_config set error='ζ‰“εŒ…ζ—Άι—΄:${dayjs().format("YYYY-MM-DD HH:mm:ss")}' where appid='${info.appid}'`) }).catch(err => {