Commit c37b031a authored by zhuwei's avatar zhuwei

添加注释

parent efff5447
...@@ -635,9 +635,12 @@ class UserService ...@@ -635,9 +635,12 @@ class UserService
/** /**
* 解除绑定关系 * 解除绑定关系
* @param $user_id * @param $now_user_id //当前详情页客户
* @return int|string * @param $user_id //被取消对象客户id
* @param $agent_id //当前操作经纪人id
* @return int
*/ */
public function removeUserBind($now_user_id,$user_id,$agent_id){ public function removeUserBind($now_user_id,$user_id,$agent_id){
// 检查权限 客方自己 有权限的人 // 检查权限 客方自己 有权限的人
$s_vip = new VipService(); $s_vip = new VipService();
...@@ -649,9 +652,9 @@ class UserService ...@@ -649,9 +652,9 @@ class UserService
return 2;//无解除关联权限权限 return 2;//无解除关联权限权限
} }
$params_['bind_id'] = 0;
$now_user_info = $this->user->getUserById($field = 'bind_id', $now_user_id); $now_user_info = $this->user->getUserById($field = 'bind_id', $now_user_id);
$params_['bind_id'] = 0;
if($now_user_info['bind_id'] == 0){ if($now_user_info['bind_id'] == 0){
//当前客户详情 客户 为主账户的情况 //当前客户详情 客户 为主账户的情况
$this->user->updateUsers($user_id,$params_); $this->user->updateUsers($user_id,$params_);
......
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