Commit 6da56e10 authored by zhuwei's avatar zhuwei

1

parent 54076e08
......@@ -280,7 +280,7 @@ class UserLogService
#拨打电话按钮是否显示 0:显示 1:不显示
$result['is_phone_button_show'] = $this->isPhoneButtonShow($user_id, $agent_id, $result['vip'], $result['user_phone'], $result['agent_id']);
$result['is_phone_button_show'] = $this->isPhoneButtonShow($user_id, $agent_id, $result['vip'], $result['user_phone']);
#编辑客户详情权限 0:有权限 1:无权限
$result['is_can_edit_user_info'] = $user_service->isCanEditUserInfo($result["agent_id"], $agent_id, $user_id);
......@@ -376,14 +376,13 @@ class UserLogService
/**
* 拨打电话按钮是否显示
* @param $user_id
* @param $agent_id
* @param $is_vip
* @param $result_user_phone
* @param $result_agent_id
* @param $user_id //客户ID
* @param $agent_id //当前经纪人ID
* @param $is_vip //客户vip状态
* @param $user_phone //客户手机号
* @return int
*/
public function isPhoneButtonShow($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id)
public function isPhoneButtonShow($user_id, $agent_id, $is_vip, $user_phone)
{
#当天有约带看的客户 0:不显示 1:显示
$s_user_call = new UserCallStintService();
......@@ -399,7 +398,7 @@ class UserLogService
$res = $this->isPhoneButtonShowA($user_id, $agent_id);
}else{
//无约带看 走老逻辑
$res = $this->isPhoneButtonShowB($user_id, $agent_id, $is_vip, $result_user_phone);
$res = $this->isPhoneButtonShowB($user_id, $agent_id, $is_vip, $user_phone);
}
return $res;
}
......@@ -430,10 +429,10 @@ class UserLogService
* @param $user_id
* @param $agent_id
* @param $is_vip
* @param $result_user_phone
* @param $user_phone
* @return int
*/
public function isPhoneButtonShowB($user_id, $agent_id, $is_vip, $result_user_phone)
public function isPhoneButtonShowB($user_id, $agent_id, $is_vip, $user_phone)
{
$user_service = new UserService();
$vip_services = new VipService();
......@@ -451,7 +450,7 @@ class UserLogService
if ($agent_boss_res == 0)
$is_user_agent_boss = 0;
#是否有绑定关系 0有 1无
$called_res = $this->userDetailIsOutpaceCallNumPhone($result_user_phone, $agent_id);
$called_res = $this->userDetailIsOutpaceCallNumPhone($user_phone, $agent_id);
if ($called_res == 0)
$called = 0;
}
......@@ -464,7 +463,7 @@ class UserLogService
// if ($is_user_agent_boss_v2 == 0)
// $is_user_agent_boss = 0;
#是否有绑定关系 0有 1无
$called_v2 = $this->userDetailIsOutpaceCallNumPhone($result_user_phone, $agent_id);
$called_v2 = $this->userDetailIsOutpaceCallNumPhone($user_phone, $agent_id);
if ($called_v2 == 0)
$called = 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