Commit c94a9337 authored by hujun's avatar hujun

人员状态

parent 08601d36
......@@ -46,14 +46,22 @@ class Broker extends Basic
}
$field = 'id,device_id,store_id,auth_group_id,district_id,level,name,phone,password,sex,img,inviter_id,status';
$where['phone'] = $this->params['phone'];
$where['id'] = ['<>',1];
$where['phone'] = $this->params['phone'];
$where['id'] = ['<>',1];
$agents_data = $this->a_agents->getAgentInfo($field, '', $where);
if (empty($agents_data)) {
return $this->response(101, '没有该用户',$data['data']);
}
if ($agents_data['status'] == 2) {
return $this->response(101, '您已离职',$data['data']);
}
if ($agents_data['status'] == 1) {
return $this->response(101, '账号已冻结',$data['data']);
}
if ($agents_data['password'] != md5($this->params['pwd'])) {
return $this->response(101, '密码错误',$data['data']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment