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)