diff --git a/FlyCube/MpApi/Controller/LoginController.class.php b/FlyCube/MpApi/Controller/LoginController.class.php index 2ea77f2..49e7076 100644 --- a/FlyCube/MpApi/Controller/LoginController.class.php +++ b/FlyCube/MpApi/Controller/LoginController.class.php @@ -31,7 +31,7 @@ class LoginController extends Controller $adminuserDb = D('adminuser'); $where['name'] = $_POST['username']; $where['del'] = '0'; - $adminInfo = $adminuserDb->where($where)->field('id,name,uname,pwd,qx,shop_id,photo,lasttime')->find(); + $adminInfo = $adminuserDb->where($where)->field('id,name,uname,pwd,role,shop_id,photo,lasttime')->find(); if ($adminInfo) { if (MD5(MD5($_POST['password'])) == $adminInfo['pwd']) { //登陆成功