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
a40817ac
Commit
a40817ac
authored
Sep 26, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
77f358d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+5
-3
UserLogService.php
application/index/service/UserLogService.php
+1
-1
No files found.
application/api_broker/service/CallPhoneService.php
View file @
a40817ac
...
@@ -129,12 +129,14 @@ class CallPhoneService
...
@@ -129,12 +129,14 @@ class CallPhoneService
$clientService
=
new
UserLogService
();
$clientService
=
new
UserLogService
();
$is_outpace_call_num
=
$clientService
->
userDetailIsOutpaceCallNum5
(
$user_id
);
$is_outpace_call_num
=
$clientService
->
userDetailIsOutpaceCallNum5
(
$user_id
);
if
(
$is_outpace_call_num
)
{
if
(
$is_outpace_call_num
)
{
$called
=
$clientService
->
userDetailIsOutpaceCallNumPhone
(
$phone_b
,
$agent_id
);
// $called = $clientService->userDetailIsOutpaceCallNumPhone($phone_b, $agent_id);
$user_data
=
$this
->
getUserDataV2
();
$called
=
$clientService
->
isPhoneButtonShow
(
$agent_id
,
$user_id
,
$user_data
[
'is_vip'
],
$phone_b
,
0
);
if
(
$called
)
{
if
(
$called
)
{
if
(
!
$clientService
->
isUserAgent
(
$agent_id
,
$user_id
))
{
//
if (!$clientService->isUserAgent($agent_id, $user_id)) {
$result
[
'msg'
]
=
'拨打次数超过5次,不能拨打。'
;
$result
[
'msg'
]
=
'拨打次数超过5次,不能拨打。'
;
return
$result
;
return
$result
;
}
//
}
}
}
}
}
}
}
...
...
application/index/service/UserLogService.php
View file @
a40817ac
...
@@ -613,7 +613,7 @@ class UserLogService
...
@@ -613,7 +613,7 @@ class UserLogService
$phone
=
$this
->
agentModel
->
getAgentsById
(
$agent_id
,
'phone'
);
$phone
=
$this
->
agentModel
->
getAgentsById
(
$agent_id
,
'phone'
);
$is_privacy
=
$redis
->
get
(
's_is_privacy'
);
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
$is_privacy
=
$redis
->
get
(
's_is_privacy'
);
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
if
(
empty
(
$phone
))
{
if
(
empty
(
$phone
))
{
$phone
=
$m_agent_phone
->
getAgentsByWhere
([
'agent_id'
=>
$agent_id
],
'phone'
);
$phone
=
$m_agent_phone
->
getAgentsByWhere
([
'agent
s
_id'
=>
$agent_id
],
'phone'
);
}
}
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$phone
.
'_'
.
$user_phone
.
'_'
.
$is_privacy
;
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$phone
.
'_'
.
$user_phone
.
'_'
.
$is_privacy
;
$redis_res
=
$redis
->
get
(
$call_key
);
$redis_res
=
$redis
->
get
(
$call_key
);
...
...
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