diff --git a/src/rest/custom/getZip.js b/src/rest/custom/getZip.js index 4a575be..29f2be6 100644 --- a/src/rest/custom/getZip.js +++ b/src/rest/custom/getZip.js @@ -23,7 +23,7 @@ module.exports = { db.query(sql) ]).then(() => setTimeout(() => { response.send({code: 0}) - }, 5000)) + }, 1000)) execute(`cd ${path}&&npm run apps&&node bin/pages.js ${id}&&npm run build`) .then(() => fse.emptyDir(dist)) .then(() => execute(`/root/node-service/move.sh ${info.type} ${path} ${dist}`))