login json data
This commit is contained in:
parent
e5f4356d28
commit
8f8b00359d
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user