Commit 391ac6ca authored by wty's avatar wty

更新dev3

parent 201c58bc
...@@ -37,7 +37,7 @@ getMysql.then(Mysql => { ...@@ -37,7 +37,7 @@ getMysql.then(Mysql => {
} }
if (Array.isArray(result) && result.length > 0) { if (Array.isArray(result) && result.length > 0) {
console.info('用户查询:',result) console.info('用户查询:',result)
const admin = +result['admin'] === 1 ? {admin: result['admin']} : {} const admin = +result[0]['admin'] === 1 ? {admin: result[0]['admin']} : {}
res.send({ res.send({
success: true, success: true,
data: Object.assign(ssoData, {follow: JSON.parse(result[0].follow)}, admin) data: Object.assign(ssoData, {follow: JSON.parse(result[0].follow)}, admin)
......
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