定制项目打包接口完成

This commit is contained in:
aixianling
2022-07-07 17:58:18 +08:00
parent f0d998c71a
commit 1308471a68

View File

@@ -6,7 +6,8 @@ module.exports = {
action: "/node/custom/getZip",
method: "post",
execute: (request, response) => {
let {id} = request.query, uniCon = `id='${id}'`.db.query(`select * from node_custom_config where id='${id}'`).then(res => {
let {id} = request.query, uniCon = `id='${id}'`
db.query(`select * from node_custom_config where id='${id}'`).then(res => {
let info = res?.[0], sql
if (info?.id) {
sql = `update node_custom_config set download=null,error=null,zipTime='${dayjs().format("YYYY-MM-DD HH:mm:ss")}' where ${uniCon}`