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
f82e7fcf
Commit
f82e7fcf
authored
Jul 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据id 取客户手机号
parent
75913f36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
CellPhone.php
application/index/controller/CellPhone.php
+21
-1
No files found.
application/index/controller/CellPhone.php
View file @
f82e7fcf
...
...
@@ -173,11 +173,31 @@ class CellPhone extends Basic
* 解除绑定关系
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
agentsUnBind
()
{
if
(
empty
(
$this
->
params
[
'user_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
();
$data
=
$call_phone
->
agentsUnBind
(
$this
->
params
[
'phone_a'
],
$
this
->
params
[
'phone_b'
]
,
$this
->
params
[
'phone_x'
]);
$data
=
$call_phone
->
agentsUnBind
(
$this
->
params
[
'phone_a'
],
$
phone_b
,
$this
->
params
[
'phone_x'
]);
$result
[
'msg'
]
=
''
;
if
(
$data
[
'status'
]
==
'success'
)
{
$result
[
'code'
]
=
200
;
...
...
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