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
b5719685
Commit
b5719685
authored
Jul 10, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打电话推送
parent
1e56b458
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
CellPhone.php
application/index/controller/CellPhone.php
+8
-6
No files found.
application/index/controller/CellPhone.php
View file @
b5719685
...
...
@@ -9,14 +9,10 @@
namespace
app\index\controller
;
use
app\api_broker\service\CallPhoneService
;
use
app\api_broker\service\PushMessageService
;
use
app\index\extend\Basic
;
use
app\api_broker\untils\PlsDemo
;
use
app\model\AliYunPhone
;
use
app\model\BindingPhone
;
use
app\model\SecretReport
;
use
Grpc\Call
;
use
think\Db
;
class
CellPhone
extends
Basic
{
...
...
@@ -136,10 +132,16 @@ class CellPhone extends Basic
*/
public
function
bindAXB
()
{
if
(
empty
(
$this
->
params
[
'user_id'
]))
{
return
$this
->
response
(
101
,
'客户id为空'
);
}
$call_phone
=
new
CallPhoneService
();
$data
=
$call_phone
->
bindAXB
(
$this
->
params
[
'phone_a'
],
$this
->
params
[
'phone_b'
]);
$result
[
'msg'
]
=
''
;
if
(
$data
[
'status'
]
==
'success'
)
{
$push
=
new
PushMessageService
();
$push
->
pushMessageById
(
$this
->
userId
,
'客户详情'
,
'后台拨打电话推送客户详情'
,
'user_info'
,
$this
->
params
[
'user_id'
]);
$result
[
'code'
]
=
200
;
$result
[
'data'
][
'phone'
]
=
$data
[
'phone'
];
}
else
{
...
...
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