This commit is contained in:
Administrator
2022-01-10 11:28:24 +08:00
parent cff82c6c25
commit 7aac508fe1

View File

@@ -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]);