Commit e1c75abb authored by zhuwei's avatar zhuwei

客户绑定列表

parent 14fde326
...@@ -539,12 +539,12 @@ class Member extends Basic{ ...@@ -539,12 +539,12 @@ class Member extends Basic{
*/ */
public function addUserBind() public function addUserBind()
{ {
if (empty($this->params['user_id'])) { if (empty($this->params['user_id']) OR empty($this->params['bind_id'])) {
return $this->response(101, '参数错误'); return $this->response(101, '参数错误');
} }
$s_index_user = new UserService(); $s_index_user = new UserService();
//新增 //新增
$add_res = $s_index_user->addUserBind($this->params['user_id'],$this->userId); $add_res = $s_index_user->addUserBind($this->params['user_id'],$this->params['bind_id']);
switch ($add_res) { switch ($add_res) {
case 1 : case 1 :
return $this->response("300", "参数不全"); return $this->response("300", "参数不全");
......
...@@ -154,6 +154,10 @@ class UserLogService ...@@ -154,6 +154,10 @@ class UserLogService
//是否可以查看vip客户 0:可查看 1:不可查看 //是否可以查看vip客户 0:可查看 1:不可查看
$data['examine_vip'] = $vip_services->vip($agent_id); $data['examine_vip'] = $vip_services->vip($agent_id);
//绑定关系(关联客户)
$s_index_user = new UserService();
$result['user_bind_list'] = $s_index_user->userBindInfo($user_id);
return ["code" => 200, "data" => $data]; return ["code" => 200, "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