From b5e1864c6a0a5407ffdc79df8fc70e2e2b450fdf Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 30 Dec 2022 09:53:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BC=82=E5=B8=B8=E6=8A=9B?= =?UTF-8?q?=E5=87=BA=E5=86=97=E4=BD=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/custom/getZip.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rest/custom/getZip.js b/src/rest/custom/getZip.js index 65e6eb3..07c33f0 100644 --- a/src/rest/custom/getZip.js +++ b/src/rest/custom/getZip.js @@ -16,8 +16,9 @@ module.exports = { wxwork: 'base-wxcp', mp: 'dvcp_v2_wxmp' }[info.type] || {} - const path = `../${buildPath}`, - {dist = `../zips/${info.name}v${info.version||"1.0.0"}`} = info + let path = `../${buildPath}`, + {dist} = info + dist = dist || `../zips/${info.name}v${info.version || "1.0.0"}` Promise.all([ execute(`./shell/update.sh ${info.name} ${path}`), db.query(sql)