From 1123a84d3a92d413e26af16cd5b1fbfa69f5101b Mon Sep 17 00:00:00 2001 From: kubbo <390378816@qq.com> Date: Fri, 20 May 2022 23:14:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=89=93=E5=8C=85=E5=B7=A5?= =?UTF-8?q?=E7=A8=8B=E7=9A=84app=E5=BA=93?= 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 9da4b28..0818916 100644 --- a/src/rest/wechat/getZip.js +++ b/src/rest/wechat/getZip.js @@ -13,7 +13,7 @@ module.exports = { db.query(`update node_wxmp_config set error=null where appid='${info.appid}'`).then(() => setTimeout(() => { response.send({code: 0}) }, 2000)) - execute(`cd /root/node-service/dvcp_v2_wechat&&node bin/pages.js ${id}&&npm run build`) + execute(`cd /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'))