Commit 336463f3 authored by hujun's avatar hujun

agent_error_log

parent 9f3165dc
...@@ -556,7 +556,7 @@ class Broker extends Basic ...@@ -556,7 +556,7 @@ class Broker extends Basic
//查看 //查看
$m_agent = new AAgents(); $m_agent = new AAgents();
$field = 'id,name,phone,password,district_id,store_id,sex,admin_off,remarks'; $field = 'id,name,phone,password,district_id,store_id,sex,admin_off,remarks';
$result['data'] = $m_agent->verifyUser($field, '', ['id' => $this->params['id']]); $result['data'] = $m_agent->getAgentInfo($field, $this->params['id']);
} }
return $this->response($result['code'], $result['msg'], $result['data']); return $this->response($result['code'], $result['msg'], $result['data']);
} }
......
...@@ -135,8 +135,7 @@ class BrokerService ...@@ -135,8 +135,7 @@ class BrokerService
$new_site_id = $m_district->getDistrictKeyById('site_id', ['id' => $data['district_id']]); $new_site_id = $m_district->getDistrictKeyById('site_id', ['id' => $data['district_id']]);
} else { } else {
$agent_old = $this->m_agent->getAgentById($field, ['phone' => $data['phone'], 'status' => 0]); $agent_old = $this->m_agent->getAgentById($field, ['phone' => $data['phone'], 'status' => 0]);
$where['id'] = $data['id']; $agent_data = $this->m_agent->getAgentInfo($field, $data['id']);
$agent_data = $this->m_agent->verifyUser($field, '', $where);
if (empty($agent_data)) { if (empty($agent_data)) {
$result['msg'] = '没有该用户'; $result['msg'] = '没有该用户';
......
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