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
ec2ee2cf
Commit
ec2ee2cf
authored
Sep 26, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a40817ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
UserLogService.php
application/index/service/UserLogService.php
+20
-11
No files found.
application/index/service/UserLogService.php
View file @
ec2ee2cf
...
...
@@ -606,19 +606,28 @@ class UserLogService
public
function
userDetailIsOutpaceCallNumPhone
(
$user_phone
,
$agent_id
)
{
$is_outpace_call_num
=
0
;
$m_agent_phone
=
new
AAgentsPhone
();
$redis
=
RedisExt
::
getRedis
();
$is_outpace_call_num
=
1
;
$call
=
new
CallPhoneService
();
$redis_cache
=
new
RedisCacheService
();
// $m_agent_phone = new AAgentsPhone();
// $redis = RedisExt::getRedis();
//
// $phone = $this->agentModel->getAgentsById($agent_id, 'phone');
// $is_privacy = $redis->get('s_is_privacy');//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
// if (empty($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);
$phone
=
$this
->
agentModel
->
getAgentsById
(
$agent_id
,
'phone'
);
$is_privacy
=
$redis
->
get
(
's_is_privacy'
);
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
if
(
empty
(
$phone
))
{
$phone
=
$m_agent_phone
->
getAgentsByWhere
([
'agents_id'
=>
$agent_id
],
'phone'
);
$agent_data
=
$redis_cache
->
getRedisCache
(
2
,
$agent_id
);
if
(
!
$agent_data
){
return
1
;
}
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$phone
.
'_'
.
$user_phone
.
'_'
.
$is_privacy
;
$redis_res
=
$redis
->
get
(
$call_key
);
if
(
empty
(
$redis_res
))
{
$is_outpace_call_num
=
1
;
$result
=
$call
->
checkBindRedis
(
$agent_id
,
$agent_data
[
'phone_list'
],
$user_phone
);
if
(
$result
!=
''
){
$is_outpace_call_num
=
0
;
}
return
$is_outpace_call_num
;
//0有绑定关系 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