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
18a7b49e
Commit
18a7b49e
authored
Oct 16, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐私号码细节调整
parent
780a0bbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+9
-4
No files found.
application/api_broker/service/CallPhoneService.php
View file @
18a7b49e
...
...
@@ -125,19 +125,24 @@ class CallPhoneService
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$this
->
phone_a
.
'_'
.
$this
->
phone_b
;
$phone_x
=
$this
->
redis
->
get
(
$call_key
);
$bind
=
new
BindingPhone
();
if
(
empty
(
$phone_x
))
{
$where
[
'a.status'
]
=
1
;
$where
[
'a.phone_a'
]
=
$phone_a
;
$where
[
'a.phone_b'
]
=
$phone_b
;
$where
[
'a.type'
]
=
$this
->
is_privacy
;
$phone_x_arr
=
$bind
->
getPhoneX
(
'b.phone_x'
,
$where
);
//已经绑定的返回隐私号码
$phone_x
=
$phone_x_arr
[
'phone_x'
];
$phone_x_arr
=
$bind
->
getPhoneX
(
'b.phone_x,a.subsId'
,
$where
);
//已经绑定的返回隐私号码
//兼容
$check_data
=
PlsDemo
::
querySubscriptionDetail
(
$phone_x_arr
[
'subsId'
],
$phone_x_arr
[
'phone_x'
]);
if
(
$check_data
->
Code
==
'OK'
)
{
$phone_x
=
$phone_x_arr
[
'phone_x'
];
}
}
if
(
!
empty
(
$phone_x
[
'phone_x'
]
))
{
if
(
!
empty
(
$phone_x
))
{
$result
[
'status'
]
=
'success'
;
$result
[
'phone'
]
=
$phone_x
[
'phone_x'
]
;
$result
[
'phone'
]
=
$phone_x
;
$result
[
'msg'
]
=
'已绑定,返回隐私号码。'
;
return
$result
;
//绑定过了,返回隐号
}
...
...
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