清洗数据
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user