Commit ece4eafb authored by zhuwei's avatar zhuwei

解绑 操作记录 检查权限

parent 6df901c4
......@@ -559,7 +559,7 @@ class UserService
* @return int|string
*/
public function removeUserBind($user_id,$agent_id){
//todo 检查权限 客方自己 有权限的人
// 检查权限 客方自己 有权限的人
$user_agent_id = $this->user->getUserByWhereValue('agent_id', ['id'=>$user_id]);
if($user_agent_id['agent_id' != $agent_id]){
return 1;//无解除关联权限权限
......@@ -575,7 +575,7 @@ class UserService
if($user_info['bind_id'] == 0){
return 2;
}else{
//todo 解绑操作记录
// 解绑操作记录
$this->userDoLog($user_id,$user_info['bind_id'],$agent_id);
}
......
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