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
8c70cc22
Commit
8c70cc22
authored
Oct 22, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
parent
d79f956d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
Remark.php
application/index/controller/Remark.php
+15
-8
No files found.
application/index/controller/Remark.php
View file @
8c70cc22
...
@@ -11,6 +11,7 @@ namespace app\index\controller;
...
@@ -11,6 +11,7 @@ namespace app\index\controller;
use
app\api_broker\service\CallPhoneService
;
use
app\api_broker\service\CallPhoneService
;
use
app\api_broker\service\ClientService
;
use
app\api_broker\service\ClientService
;
use
app\api_broker\service\UserExpiredTimeService
;
use
app\api_broker\service\UserExpiredTimeService
;
use
app\extra\RedisExt
;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\index\service\UserService
;
use
app\index\service\UserService
;
use
app\model\AAgents
;
use
app\model\AAgents
;
...
@@ -118,11 +119,10 @@ class Remark extends Basic
...
@@ -118,11 +119,10 @@ class Remark extends Basic
}
}
$field
=
'id,user_id,create_time,content,user_status,labels_id,agent_id as f_agent_id'
;
$field
=
'id,user_id,create_time,content,user_status,labels_id,agent_id as f_agent_id'
;
$data
[
'data'
][
'list'
]
=
$u_phone_follow
->
getFollowList
(
$pageNo
,
$pageSize
,
$order_
=
'id desc'
,
$field
,
$where
);
$data
[
'data'
][
'list'
]
=
$u_phone_follow
->
getFollowList
(
$pageNo
,
$pageSize
,
$order_
=
'id desc'
,
$field
,
$where
);
$redis
=
RedisExt
::
getRedis
();
foreach
(
$data
[
'data'
][
'list'
]
as
$k
=>
$v
)
{
foreach
(
$data
[
'data'
][
'list'
]
as
$k
=>
$v
)
{
// dump($v);
//dump($v);
//查询客户是否在保护期内
//查询客户是否在保护期内
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
$user_service
=
new
UserService
();
$user_service
=
new
UserService
();
...
@@ -138,11 +138,18 @@ class Remark extends Basic
...
@@ -138,11 +138,18 @@ class Remark extends Basic
}
}
$model
=
new
AAgents
();
$model
=
new
AAgents
();
$result
=
$model
->
searchAgentsByKeyword
(
"id,name,phone"
,
[
"id"
=>
$this
->
params
[
"agent_id"
]]);
$result
=
$model
->
searchAgentsByKeyword
(
"id,name,phone"
,
[
"id"
=>
$this
->
params
[
"agent_id"
]]);
$call
=
new
CallPhoneService
();
//$call = new CallPhoneService();
$result
=
$call
->
getBindNum
(
$v
[
'user_phone'
],
$result
[
0
][
'phone'
]);
//$result = $call->getBindNum($v['user_phone'],$result[0]['phone']);
if
(
$result
!=
0
){
$is_outpace_call_num
=
0
;
$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
;
$redis_res
=
$redis
->
get
(
$call_key
);
if
(
!
empty
(
$redis_res
)){
$is_outpace_call_num
=
0
;
}
}
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
$data
[
'data'
][
'list'
][
$k
][
'is_outpace_call_num'
]
=
$is_outpace_call_num
;
$data
[
'data'
][
'list'
][
$k
][
'is_outpace_call_num'
]
=
$is_outpace_call_num
;
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 end*/
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 end*/
...
...
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