Commit 0e591675 authored by wty's avatar wty

上线test11

parent 523eae30
...@@ -18,8 +18,8 @@ getMysql.then(Mysql => { ...@@ -18,8 +18,8 @@ getMysql.then(Mysql => {
const lastToolBoxId = queryToolBox[queryToolBox.length - 1].toolbox_id const lastToolBoxId = queryToolBox[queryToolBox.length - 1].toolbox_id
const params = [lastToolBoxId, type_id] const params = [lastToolBoxId, type_id]
if (typeof child_type_id !== 'number') params.push(null) !child_type_id ? params.push(null) : params.push(child_type_id)
else params.push(child_type_id)
const addRelation = await query(SQL2, params) const addRelation = await query(SQL2, params)
if (addRelation) res.send({success: true}) if (addRelation) res.send({success: true})
else throw 'addRelation异常' else throw 'addRelation异常'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment