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
18daa5c1
Commit
18daa5c1
authored
Jul 10, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回值修改
parent
b5719685
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
CellPhone.php
application/index/controller/CellPhone.php
+7
-5
No files found.
application/index/controller/CellPhone.php
View file @
18daa5c1
...
...
@@ -141,14 +141,15 @@ class CellPhone extends Basic
$result
[
'msg'
]
=
''
;
if
(
$data
[
'status'
]
==
'success'
)
{
$push
=
new
PushMessageService
();
$push
->
pushMessageById
(
$this
->
userId
,
'客户详情'
,
'后台拨打电话推送客户详情'
,
'user_info'
,
$this
->
params
[
'user_id'
]);
$push
->
pushMessageById
(
$this
->
userId
,
'客户详情'
,
'后台拨打电话推送客户详情'
,
'user_info'
,
$this
->
params
[
'user_id'
]);
$result
[
'code'
]
=
200
;
$result
[
'data'
][
'phone'
]
=
$data
[
'phone'
];
}
else
{
$result
[
'status'
]
=
101
;
$result
[
'msg'
]
=
$data
[
'msg'
];
}
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$data
);
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$result
);
}
/**
...
...
@@ -162,12 +163,12 @@ class CellPhone extends Basic
$data
=
$call_phone
->
agentsUnBind
(
$this
->
params
[
'phone_a'
],
$this
->
params
[
'phone_b'
],
$this
->
params
[
'phone_x'
]);
$result
[
'msg'
]
=
''
;
if
(
$data
[
'status'
]
==
'success'
)
{
$result
[
'code'
]
=
200
;
$result
[
'
data'
][
'phone'
]
=
$data
[
'phone'
]
;
$result
[
'code'
]
=
200
;
$result
[
'
msg'
]
=
'释放成功'
;
}
else
{
$result
[
'status'
]
=
101
;
$result
[
'msg'
]
=
$data
[
'msg'
];
}
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
]
,
$data
);
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
]);
}
}
\ No newline at end of file
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