Commit 757df5d1 authored by hujun's avatar hujun

编辑经纪人验证修改

parent 1035f424
......@@ -58,11 +58,11 @@ class BrokerService
return $result;
}
$where['phone'] = $data['phone'];
$where['site_id'] = $data['site_id'];
$agent_data = $this->m_agent->verifyUser('id,phone,password,site_id,district_id', '', $where);
if (empty($data['id'])) {
$where['phone'] = $data['phone'];
$where['site_id'] = $data['site_id'];
$agent_data = $this->m_agent->verifyUser('id,phone,password,site_id,district_id', '', $where);
if (!empty($agent_data['status']) && $agent_data['status'] == 3) {
$result['msg'] = '该用户已转勤';
}
......@@ -91,6 +91,9 @@ class BrokerService
$data['password'] = substr($data['phone'], -6); //默认密码
}
} else {
$where['id'] = $data['id'];
$agent_data = $this->m_agent->verifyUser('id,phone,password,site_id,district_id', '', $where);
if (empty($agent_data)) {
$result['msg'] = '没有该用户';
return $result;
......
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