From 9b947b64dc697110f03e637a977b7d42443b57e4 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 2 Mar 2023 10:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E6=B4=97=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/custom/detail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/custom/detail.js b/src/rest/custom/detail.js index ef1ade4..caccf21 100644 --- a/src/rest/custom/detail.js +++ b/src/rest/custom/detail.js @@ -6,7 +6,7 @@ module.exports = { let {id} = request.query dbUtils.detail({table: 'node_custom_config', id}).then(data => { data.apps = JSON.parse(data.apps || "[]") - data.extra = JSON.parse(data.extra || null) + data.extra = JSON.parse(data.extra.replace(/\n/g,'') || null) Promise.all([ dbUtils.query(`select * from node_wechat_apps where id in (${data.apps?.map(e=>`'${e}'`)?.toString()||202207181503})`) .then(res => data.appList = [data.appList, res].flat()),