Commit 4d850566 authored by hujun's avatar hujun

跟进列表判断绑定

parent 20af9be8
...@@ -143,18 +143,21 @@ class Remark extends Basic ...@@ -143,18 +143,21 @@ class Remark extends Basic
//$call = new CallPhoneService(); //$call = new CallPhoneService();
//$result = $call->getBindNum($v['user_phone'],$result[0]['phone']); //$result = $call->getBindNum($v['user_phone'],$result[0]['phone']);
$is_privacy = $redis->get('s_is_privacy');//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询 if ($is_outpace_call_num == 1 ) {
if (empty($result[0]['phone'])) { $is_privacy = $redis->get('s_is_privacy');//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
$m_agent_phone = new AAgentsPhone(); if (empty($result[0]['phone'])) {
$agent_phone = $m_agent_phone->getList(1,1,'','phone', ['agent_id'=>$this->userId]); $m_agent_phone = new AAgentsPhone();
$phone = $agent_phone[0]['phone']; $agent_phone = $m_agent_phone->getList(1,1,'','phone', ['agent_id'=>$this->userId]);
} else { $phone = $agent_phone[0]['phone'];
$phone = $result[0]['phone']; } else {
} $phone = $result[0]['phone'];
$call_key = 'call_'.$this->userId.'_'.$phone.'_'.$v['user_phone'].'_'.$is_privacy; }
$redis_res = $redis->get($call_key); $call_key = 'call_'.$this->userId.'_'.$phone.'_'.$v['user_phone'].'_'.$is_privacy;
if(!empty($redis_res)){ $redis_res = $redis->get($call_key);
$is_outpace_call_num = 0;
if(empty($redis_res)){
$is_outpace_call_num = 0;
}
} }
$data['data']['list'][$k]['is_outpace_call_num'] = $is_outpace_call_num; $data['data']['list'][$k]['is_outpace_call_num'] = $is_outpace_call_num;
......
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