Commit 026bc286 authored by zhuwei's avatar zhuwei

1

parent 257fda63
...@@ -363,11 +363,14 @@ class UserLogService ...@@ -363,11 +363,14 @@ class UserLogService
$is_user_report = $s_user_call->isUserReport($user_id); $is_user_report = $s_user_call->isUserReport($user_id);
//3.3.9 如果有约带看 同时过保护期了 //3.3.9 如果有约带看 同时过保护期了
if ($is_user_report == 1 ) { if ($is_user_report == 1 ) {
$this->isPhoneButtonShowA($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id); big_log('有约带看');
$res = $this->isPhoneButtonShowA($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id);
}else{ }else{
//无约带看 走老逻辑 //无约带看 走老逻辑
$this->isPhoneButtonShowB($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id); big_log('无约带看 走老逻辑');
$res = $this->isPhoneButtonShowB($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id);
} }
return $res;
} }
public function isPhoneButtonShowA($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id) public function isPhoneButtonShowA($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id)
...@@ -375,6 +378,7 @@ class UserLogService ...@@ -375,6 +378,7 @@ class UserLogService
#当天有约带看的客户 0:不显示 1:显示 #当天有约带看的客户 0:不显示 1:显示
$s_user_call = new UserCallStintService(); $s_user_call = new UserCallStintService();
$report_agents = $s_user_call->getUserReportAgentIdList($user_id); $report_agents = $s_user_call->getUserReportAgentIdList($user_id);
big_log($report_agents);
//3.3.9 有约带看订单的客户 预计到场当天 只能 约带看提交人 或 客方 拨打电话 //3.3.9 有约带看订单的客户 预计到场当天 只能 约带看提交人 或 客方 拨打电话
if (($result_agent_id == $agent_id) or (in_array($agent_id, $report_agents))) { if (($result_agent_id == $agent_id) or (in_array($agent_id, $report_agents))) {
return 0; return 0;
...@@ -416,6 +420,8 @@ class UserLogService ...@@ -416,6 +420,8 @@ class UserLogService
if ($called_v2 == 0) if ($called_v2 == 0)
$called = 0; $called = 0;
big_log("是否有绑定关系{$called_v2}");
#判断当天被拨打是否超过5次 (0:拨打不超过5次 1:超过5次) #判断当天被拨打是否超过5次 (0:拨打不超过5次 1:超过5次)
$is_outpace_call_num = $this->userDetailIsOutpaceCallNum5($user_id); $is_outpace_call_num = $this->userDetailIsOutpaceCallNum5($user_id);
...@@ -428,7 +434,16 @@ class UserLogService ...@@ -428,7 +434,16 @@ class UserLogService
#经纪人客户是否有约带看 0:可查看 1:不可查看 #经纪人客户是否有约带看 0:可查看 1:不可查看
$is_report = $user_service->isReport($agent_id, $user_id); $is_report = $user_service->isReport($agent_id, $user_id);
big_log("经纪人客户是否有约带看{$is_report}");
// dump((($is_outpace_call_num == 0) and ($is_outstrip_twenty_four_hours == 1) and ($is_vip != 1)) );
// dump(($is_user_agent_boss == 0));
// dump(in_array($agent_id, $user_agent_list_arr));
// dump(($result_agent_id == $agent_id));
// dump((($is_vip == 1) and ($examine_vip == 0)));
// dump( (($is_outpace_call_num == 0) and ($is_outstrip_twenty_four_hours == 0) and (($is_user_agent_boss == 0) or (in_array($agent_id, $user_agent_list_arr)) or ($called == 0))));
// dump((($is_outpace_call_num == 1) and (($is_user_agent_boss == 0) or (in_array($agent_id, $user_agent_list_arr)) or ($called == 0))));
// dump(($is_report == 0));
if ( if (
(($is_outpace_call_num == 0) and ($is_outstrip_twenty_four_hours == 1) and ($is_vip != 1)) //过保护期 (($is_outpace_call_num == 0) and ($is_outstrip_twenty_four_hours == 1) and ($is_vip != 1)) //过保护期
...@@ -444,8 +459,8 @@ class UserLogService ...@@ -444,8 +459,8 @@ class UserLogService
(($is_outpace_call_num == 0) and ($is_outstrip_twenty_four_hours == 0) and (($is_user_agent_boss == 0) or (in_array($agent_id, $user_agent_list_arr)) or ($called == 0))) (($is_outpace_call_num == 0) and ($is_outstrip_twenty_four_hours == 0) and (($is_user_agent_boss == 0) or (in_array($agent_id, $user_agent_list_arr)) or ($called == 0)))
OR OR
(($is_outpace_call_num == 1) and (($is_user_agent_boss == 0) or (in_array($agent_id, $user_agent_list_arr)) or ($called == 0))) (($is_outpace_call_num == 1) and (($is_user_agent_boss == 0) or (in_array($agent_id, $user_agent_list_arr)) or ($called == 0)))
OR // OR
($is_report == 0) // ($is_report == 0)
) { ) {
return 0;//0:显示 return 0;//0:显示
}else{ }else{
......
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