This commit is contained in:
@@ -70,6 +70,7 @@ class Admin extends Controller
|
|||||||
$data = $this->request->post();
|
$data = $this->request->post();
|
||||||
$where['account'] = $data['account'];
|
$where['account'] = $data['account'];
|
||||||
$where['password'] = md5($data['password']);
|
$where['password'] = md5($data['password']);
|
||||||
|
|
||||||
$res = $this->admin_obj->where($where)->find();
|
$res = $this->admin_obj->where($where)->find();
|
||||||
if($res){
|
if($res){
|
||||||
return json(['code'=>0,'msg'=>'','data'=>$res]);
|
return json(['code'=>0,'msg'=>'','data'=>$res]);
|
||||||
|
|||||||
Reference in New Issue
Block a user