Commit 90835cbc authored by hujun's avatar hujun

经纪人登录

parent d9b16f7e
......@@ -131,7 +131,7 @@ class Broker extends Basic
$where['phone'] = $params['phone'];
$where['id'] = [ '<>', 1 ];
$where['status'] = ['<>', 3];
$agents_data = $this->a_agents->getAgentInfo($field, '', $where);
$agents_data = $this->a_agents->getAgentById($field, $where);
if (count($agents_data) <= 0) {
return $this->response(101, '没有该用户');
}
......
......@@ -280,6 +280,9 @@ class AAgents extends BaseModel
if (isset($params['in_id'])) {
$where_['id'] = [ 'in', $params['in_id'] ];
}
if (isset($params['id'])) {
$where_['id'] = $params['id'];
}
$result = $this->field($field)
->where($where_)
->select();
......
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