From bf60b7f2572bc73796636af1135ea77d4f6bdd19 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 18 Jul 2022 15:01:28 +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/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 1299d1d..80fafc6 100644 --- a/src/rest/custom/detail.js +++ b/src/rest/custom/detail.js @@ -8,7 +8,7 @@ module.exports = { data.apps = JSON.parse(data.apps || "[]") data.extra = JSON.parse(data.extra || null) Promise.all([ - dbUtils.query(`select * from node_wechat_apps where id in (${data.apps?.map(e=>`'${e}'`)?.toString()})`) + dbUtils.query(`select * from node_wechat_apps where id in (null,${data.apps?.map(e=>`'${e}'`)?.toString()})`) .then(res => data.appList = [data.appList, res].flat()), dbUtils.query(`select * from node_wechat_apps where type='${data.type}' and id like '%project_${data.customPath}%'`) .then(res => data.appList = [data.appList, res].flat())