Commit 2157e17a authored by zhuwei's avatar zhuwei

客户

parent 23daa72c
......@@ -416,8 +416,9 @@ class UserService
/**
* 查询当前经纪人是否是某个客方的总监
* @param $user_id
* @return bool
* @param $user_agent_id 当前用户客方
* @param $agent_id 当前登录用户
* @return int
*/
public function isUserAgentDirector($user_agent_id,$agent_id){
if(!$user_agent_id){
......@@ -426,8 +427,9 @@ class UserService
if(!$agent_id){
return 1;
}
$agent = new AAgents();
$ccr_agent_data = $agent->getAgentInfo('name', $operation_id);
$agent_model = new AAgents();
$params_["id"] = $user_agent_id;
$result = $agent_model->searchAgentsByKeyword("id,store_id,district_id,level", $params_);
if ((time() < strtotime($res['protect_time']))) {
return 0;//保护期内
......
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