Commit a40817ac authored by hujun's avatar hujun

1

parent 77f358d3
......@@ -129,12 +129,14 @@ class CallPhoneService
$clientService = new UserLogService();
$is_outpace_call_num = $clientService->userDetailIsOutpaceCallNum5($user_id);
if ($is_outpace_call_num) {
$called = $clientService->userDetailIsOutpaceCallNumPhone($phone_b, $agent_id);
// $called = $clientService->userDetailIsOutpaceCallNumPhone($phone_b, $agent_id);
$user_data = $this->getUserDataV2();
$called = $clientService->isPhoneButtonShow($agent_id, $user_id, $user_data['is_vip'], $phone_b, 0);
if ($called) {
if (!$clientService->isUserAgent($agent_id, $user_id)) {
// if (!$clientService->isUserAgent($agent_id, $user_id)) {
$result['msg'] = '拨打次数超过5次,不能拨打。';
return $result;
}
// }
}
}
}
......
......@@ -613,7 +613,7 @@ class UserLogService
$phone = $this->agentModel->getAgentsById($agent_id, 'phone');
$is_privacy = $redis->get('s_is_privacy');//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
if (empty($phone)) {
$phone = $m_agent_phone->getAgentsByWhere(['agent_id' => $agent_id], 'phone');
$phone = $m_agent_phone->getAgentsByWhere(['agents_id' => $agent_id], 'phone');
}
$call_key = 'call_' . $agent_id . '_' . $phone . '_' . $user_phone . '_' . $is_privacy;
$redis_res = $redis->get($call_key);
......
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