diff --git a/src/rest/custom/getZip.js b/src/rest/custom/getZip.js index 0211dcb..65e6eb3 100644 --- a/src/rest/custom/getZip.js +++ b/src/rest/custom/getZip.js @@ -17,7 +17,7 @@ module.exports = { mp: 'dvcp_v2_wxmp' }[info.type] || {} const path = `../${buildPath}`, - {dist = `../zips/${info.name}v${info.version}`} = info + {dist = `../zips/${info.name}v${info.version||"1.0.0"}`} = info Promise.all([ execute(`./shell/update.sh ${info.name} ${path}`), db.query(sql)