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
445c46d0
Commit
445c46d0
authored
Jul 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台拨打电话
parent
202715a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
CellPhone.php
application/index/controller/CellPhone.php
+18
-1
No files found.
application/index/controller/CellPhone.php
View file @
445c46d0
...
@@ -12,6 +12,7 @@ use app\api_broker\service\CallPhoneService;
...
@@ -12,6 +12,7 @@ use app\api_broker\service\CallPhoneService;
use
app\api_broker\service\PushMessageService
;
use
app\api_broker\service\PushMessageService
;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\model\SecretReport
;
use
app\model\SecretReport
;
use
app\model\Users
;
class
CellPhone
extends
Basic
class
CellPhone
extends
Basic
...
@@ -129,6 +130,9 @@ class CellPhone extends Basic
...
@@ -129,6 +130,9 @@ class CellPhone extends Basic
* 绑定手机号
* 绑定手机号
*
*
* @return \think\Response
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
bindAXB
()
public
function
bindAXB
()
{
{
...
@@ -136,8 +140,21 @@ class CellPhone extends Basic
...
@@ -136,8 +140,21 @@ class CellPhone extends Basic
return
$this
->
response
(
101
,
'客户id为空'
);
return
$this
->
response
(
101
,
'客户id为空'
);
}
}
if
(
empty
(
$this
->
params
[
'phone_b'
]))
{
$m_user
=
new
Users
();
$user_phone
=
$m_user
->
selectUser
(
$this
->
params
[
'user_id'
],
'user_phone'
);
if
(
empty
(
$user_phone
[
'user_phone'
]))
{
return
$this
->
response
(
101
,
'没有用户信息'
);
}
$phone_b
=
$user_phone
[
'user_phone'
];
}
else
{
$phone_b
=
$this
->
params
[
'phone_b'
];
}
$call_phone
=
new
CallPhoneService
();
$call_phone
=
new
CallPhoneService
();
$data
=
$call_phone
->
bindAXB
(
$this
->
params
[
'phone_a'
],
$
this
->
params
[
'phone_b'
]
);
$data
=
$call_phone
->
bindAXB
(
$this
->
params
[
'phone_a'
],
$
phone_b
);
$result
[
'msg'
]
=
''
;
$result
[
'msg'
]
=
''
;
if
(
$data
[
'status'
]
==
'success'
)
{
if
(
$data
[
'status'
]
==
'success'
)
{
$push
=
new
PushMessageService
();
$push
=
new
PushMessageService
();
...
...
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