Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
bb4693b4
Commit
bb4693b4
authored
Apr 04, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进列表
parent
244b485f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
Remark.php
application/index/controller/Remark.php
+17
-7
No files found.
application/index/controller/Remark.php
View file @
bb4693b4
...
...
@@ -10,6 +10,7 @@ namespace app\index\controller;
use
app\api_broker\service\CallPhoneService
;
use
app\api_broker\service\ClientService
;
use
app\api_broker\service\RedisCacheService
;
use
app\extra\RedisExt
;
use
app\api_broker\service\VerifyRepetitionService
;
use
app\index\extend\Basic
;
...
...
@@ -119,6 +120,9 @@ class Remark extends Basic
$list
=
$u_phone_follow
->
getFollowList
(
$pageNo
,
$pageSize
,
$order_
=
'id desc'
,
$field
,
$where
);
$label_data
=
$m_label
->
getColumn
(
'id,name'
,
[
'type'
=>
1
]);
//获取标签
$redis_service
=
new
RedisCacheService
();
$call
=
new
CallPhoneService
();
foreach
(
$list
as
$k
=>
$v
)
{
if
(
!
empty
(
$v
[
'user_id'
]))
{
$user_data
=
$m_user
->
getUserById
(
'user_name,user_phone,vip,agent_id,create_time'
,
$v
[
'user_id'
]);
...
...
@@ -143,14 +147,20 @@ class Remark extends Basic
$is_outpace_call_num
=
1
;
}
$
phone
=
$m_agent
->
getAgentsById
(
$this
->
userId
,
'phone'
);
if
(
$is_outpace_call_num
==
1
)
{
$
is_privacy
=
$redis
->
get
(
's_is_privacy'
);
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
if
(
empty
(
$phone
))
{
$phone
=
$m_agent_phone
->
getAgentsByWhere
([
'agent_id'
=>
$this
->
userId
],
'phone'
)
;
$
agent_data
=
$redis_service
->
getRedisCache
(
2
,
$this
->
userId
);
if
(
empty
(
$agent_data
))
{
$
phone
[
'phone_list'
]
=
$m_agent
->
getAgentsById
(
$this
->
userId
,
'phone'
);
}
else
{
$phone
=
$agent_data
[
'phone_list'
]
;
}
$call_key
=
'call_'
.
$this
->
userId
.
'_'
.
$phone
.
'_'
.
$v
[
'user_phone'
]
.
'_'
.
$is_privacy
;
$redis_res
=
$redis
->
get
(
$call_key
);
if
(
$is_outpace_call_num
==
1
)
{
// $is_privacy = $redis->get('s_is_privacy');//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
// if (empty($phone)) {
// $phone = $m_agent_phone->getAgentsByWhere(['agent_id'=>$this->userId], 'phone');
// }
// $call_key = 'call_'.$this->userId.'_'.$phone.'_'.$v['user_phone'].'_'.$is_privacy;
// $redis_res = $redis->get($call_key);
$redis_res
=
$call
->
checkBindRedis
(
$this
->
userId
,
$agent_data
[
'phone_list'
],
$v
[
'user_phone'
]);
if
(
empty
(
$redis_res
)){
$is_outpace_call_num
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment