Commit 7ab5442b authored by hujun's avatar hujun

经纪人邀请记录

parent a7249a49
...@@ -324,5 +324,34 @@ class Client extends Basic ...@@ -324,5 +324,34 @@ class Client extends Basic
} }
/**
* 邀请记录
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function inviteList() {
$data['status'] = 101;
$data['data'] = array();
$data['msg'] = '';
if ($this->agentId) {
$where['status'] = 0;
$where['referrer_id'] = $this->agentId;
$where['referrer_source'] = 20;
$fields = 'user_nick,user_phone,user_pic,create_time';
$data['data'] = $this->user->getUserByWhere($where, $fields);
foreach ($data['data'] as $k=>$v) {
$data['data'][$k]['user_pic'] = HEADERIMGURL.$v['user_pic'];
}
$data['status'] = 200;
} else {
$data['msg'] = 'id is null';
}
return $this->response($data['status'], $data['msg'], $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