Commit 201c58bc authored by wty's avatar wty

更新dev2

parent e4bbb5ad
......@@ -36,7 +36,8 @@ getMysql.then(Mysql => {
return
}
if (Array.isArray(result) && result.length > 0) {
const admin = result['admin'] === 1 ? {admin: result['admin']} : {}
console.info('用户查询:',result)
const admin = +result['admin'] === 1 ? {admin: result['admin']} : {}
res.send({
success: true,
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