Commit dc636258 authored by hujun's avatar hujun

跟进列表判断绑定

# Conflicts: # application/index/controller/Remark.php
parent c8d260b1
......@@ -15,7 +15,7 @@ use app\extra\RedisExt;
use app\index\extend\Basic;
use app\index\service\UserService;
use app\model\AAgents;
use app\model\Agents;
use app\model\AAgentsPhone;
use app\model\GOperatingRecords;
use app\model\Remarks;
use app\model\ULabels;
......@@ -144,14 +144,23 @@ class Remark extends Basic
// $is_outpace_call_num = 0;
//}
if ($is_outpace_call_num == 1 ) {
$is_privacy = $redis->get('s_is_privacy');//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
if(!empty($is_privacy)) {
$call_key = 'call_'.$this->userId.'_'.$result[0]['phone'].'_'.$v['user_phone'].'_'.$is_privacy;
if (empty($result[0]['phone'])) {
$m_agent_phone = new AAgentsPhone();
$agent_phone = $m_agent_phone->getList(1,1,'','phone', ['agent_id'=>$this->userId]);
$phone = $agent_phone[0]['phone'];
} else {
$phone = $result[0]['phone'];
}
$call_key = 'call_'.$this->userId.'_'.$phone.'_'.$v['user_phone'].'_'.$is_privacy;
$redis_res = $redis->get($call_key);
if(!empty($redis_res)){
if(empty($redis_res)){
$is_outpace_call_num = 0;
}
}//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
}
$data['data']['list'][$k]['is_outpace_call_num'] = $is_outpace_call_num;
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 end*/
......
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