login json data

This commit is contained in:
toogee 2020-06-03 15:58:31 +08:00
parent e5f4356d28
commit 8f8b00359d

View File

@ -33,7 +33,7 @@ class Login
$res = $user->login($data);
if ($res == 1) {
$res = ['code'=>0,'msg'=>'登陆成功' 'url'=>(string) url('index/index')];
$res = ['code'=>0,'msg'=>'登陆成功', 'url'=>(string) url('index/index')];
//$res['data']['access_token'] = $data['__token__'];
} else {
$res = ['code'=>-1,'msg'=>$res,'url'=>'admin/login'];