Commit 54076e08 authored by zhuwei's avatar zhuwei

1

parent 59b549d6
......@@ -396,10 +396,10 @@ class UserLogService
$user_service = new UserService();
$is_outstrip_twenty_four_hours = $user_service->isUserProtect($user_id);
if (($is_outstrip_twenty_four_hours == 1) && ($is_user_report && (time() < $behind_see_time &&(time() > $front_see_time)))) {
$res = $this->isPhoneButtonShowA($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id);
$res = $this->isPhoneButtonShowA($user_id, $agent_id);
}else{
//无约带看 走老逻辑
$res = $this->isPhoneButtonShowB($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id);
$res = $this->isPhoneButtonShowB($user_id, $agent_id, $is_vip, $result_user_phone);
}
return $res;
}
......@@ -408,18 +408,17 @@ class UserLogService
* 拨打电话按钮 是否显示 2
* @param $user_id
* @param $agent_id
* @param $is_vip
* @param $result_user_phone
* @param $result_agent_id
* @return int
*/
public function isPhoneButtonShowA($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id)
public function isPhoneButtonShowA($user_id, $agent_id)
{
#当天有约带看的客户 0:不显示 1:显示
$s_user_call = new UserCallStintService();
$report_agents = $s_user_call->getUserReportAgentIdList($user_id);
$is_user_agent = $this->isUserAgent($agent_id,$user_id);
//3.3.9 有约带看订单的客户 预计到场当天 只能 约带看提交人 或 客方 拨打电话
if (($result_agent_id == $agent_id) or (in_array($agent_id, $report_agents))) {
if (($is_user_agent == 1) or (in_array($agent_id, $report_agents))) {
return 0;
} else {
return 1;
......@@ -432,10 +431,9 @@ class UserLogService
* @param $agent_id
* @param $is_vip
* @param $result_user_phone
* @param $result_agent_id
* @return int
*/
public function isPhoneButtonShowB($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id)
public function isPhoneButtonShowB($user_id, $agent_id, $is_vip, $result_user_phone)
{
$user_service = new UserService();
$vip_services = new VipService();
......
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