From 785157a65a88159e2c769278f6e68ca177583425 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 27 May 2022 17:29:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E5=8C=85=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/wechat/getZip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/wechat/getZip.js b/src/rest/wechat/getZip.js index 3135eb9..8e04a5c 100644 --- a/src/rest/wechat/getZip.js +++ b/src/rest/wechat/getZip.js @@ -17,7 +17,7 @@ module.exports = { db.query(sql).then(() => setTimeout(() => { response.send({code: 0}) }, 2000)) - execute(`cd /root/node-service/dvcp_v2_wechat&&npm run apps&&node bin/pages.js ${id}&&npm run build`) + 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'))