diff --git a/app/controller/api/dataview/Login.php b/app/controller/api/dataview/Login.php index 7d9b0aa7..2cf657b2 100644 --- a/app/controller/api/dataview/Login.php +++ b/app/controller/api/dataview/Login.php @@ -56,6 +56,7 @@ class Login extends BaseController $msg = '账号或密码错误'; throw new ValidateException($msg); } + $user['merchant'] = Db::name('merchant')->where('uid', $user['uid'])->find(); $expire = time()+ 3600 * 24; $token = md5($expire); // 缓存token