兼容异常
This commit is contained in:
@@ -31,7 +31,7 @@ module.exports = {
|
|||||||
return db.query(`update node_custom_config set download='${dayjs().format("YYYY-MM-DD HH:mm:ss")}',error='' where ${uniCon}`)
|
return db.query(`update node_custom_config set download='${dayjs().format("YYYY-MM-DD HH:mm:ss")}',error='' where ${uniCon}`)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
return db.query(`update node_custom_config set error='${err.substring(0,50)}',zipTime=null where ${uniCon}`)
|
return db.query(`update node_custom_config set error='${err?.substring(0,50)}',zipTime=null where ${uniCon}`)
|
||||||
})
|
})
|
||||||
} else return response.send({code: 1, err: "无法找到定制项目信息"})
|
} else return response.send({code: 1, err: "无法找到定制项目信息"})
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|||||||
Reference in New Issue
Block a user