定制项目打包接口完成
This commit is contained in:
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user