From 588518b8be3fdd7af59c7051919093c7b9926ba0 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 23 Aug 2022 14:02:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/custom/getZip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/custom/getZip.js b/src/rest/custom/getZip.js index 7eb0d3c..983adf0 100644 --- a/src/rest/custom/getZip.js +++ b/src/rest/custom/getZip.js @@ -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}`) }).catch(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: "无法找到定制项目信息"}) }).catch(err => {