Commit 23daa72c authored by zhuwei's avatar zhuwei

客户

parent f2e4603b
......@@ -413,4 +413,27 @@ class UserService
return true;
}
/**
* 查询当前经纪人是否是某个客方的总监
* @param $user_id
* @return bool
*/
public function isUserAgentDirector($user_agent_id,$agent_id){
if(!$user_agent_id){
return 1;
}
if(!$agent_id){
return 1;
}
$agent = new AAgents();
$ccr_agent_data = $agent->getAgentInfo('name', $operation_id);
if ((time() < strtotime($res['protect_time']))) {
return 0;//保护期内
}else{
return 1;//过保护期
}
}
}
\ No newline at end of file
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