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
e8610432
Commit
e8610432
authored
Oct 16, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口请求结果判断
parent
81b0c628
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+3
-3
No files found.
application/api_broker/service/CallPhoneService.php
View file @
e8610432
...
@@ -122,7 +122,7 @@ class CallPhoneService
...
@@ -122,7 +122,7 @@ class CallPhoneService
$result
[
'phone'
]
=
$phone_b
;
$result
[
'phone'
]
=
$phone_b
;
return
$result
;
return
$result
;
}
}
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$this
->
phone_a
.
'_'
.
$this
->
phone_b
;
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$this
->
phone_a
.
'_'
.
$this
->
phone_b
.
'_'
.
$this
->
is_privacy
;
$phone_x
=
$this
->
redis
->
get
(
$call_key
);
$phone_x
=
$this
->
redis
->
get
(
$call_key
);
$bind
=
new
BindingPhone
();
$bind
=
new
BindingPhone
();
...
@@ -137,7 +137,7 @@ class CallPhoneService
...
@@ -137,7 +137,7 @@ class CallPhoneService
if
(
!
empty
(
$phone_x_arr
[
'subsId'
])
&&
$phone_x_arr
[
'phone_x'
])
{
if
(
!
empty
(
$phone_x_arr
[
'subsId'
])
&&
$phone_x_arr
[
'phone_x'
])
{
//兼容
//兼容
$check_data
=
PlsDemo
::
querySubscriptionDetail
(
$phone_x_arr
[
'subsId'
],
$phone_x_arr
[
'phone_x'
]);
$check_data
=
PlsDemo
::
querySubscriptionDetail
(
$phone_x_arr
[
'subsId'
],
$phone_x_arr
[
'phone_x'
]);
if
(
$check_data
->
Code
==
'OK'
)
{
if
(
$check_data
->
Code
==
'OK'
&&
$check_data
->
SecretBindDetailDTO
->
Status
==
1
)
{
$phone_x
=
$phone_x_arr
[
'phone_x'
];
$phone_x
=
$phone_x_arr
[
'phone_x'
];
}
}
}
}
...
@@ -355,7 +355,7 @@ class CallPhoneService
...
@@ -355,7 +355,7 @@ class CallPhoneService
}
}
$phone
=
new
BindingPhone
();
$phone
=
new
BindingPhone
();
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$this
->
phone_a
.
'_'
.
$this
->
phone_b
;
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$this
->
phone_a
.
'_'
.
$this
->
phone_b
.
'_'
.
$this
->
is_privacy
;
try
{
try
{
if
(
$this
->
is_privacy
==
1
)
{
if
(
$this
->
is_privacy
==
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