Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
d1fdc6d9072f0eb73a2dfe57980795e61bbbcc9b
1 parent
3c7efef7
优化取消订单接口返回为nul时的提示信息
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
d1fdc6d
...
...
@@ -727,7 +727,9 @@ class HomeController extends AbstractAction
//调用取消订单接口,返回订单取消状态
$data
=
OrderData
::
cancelOrderData
(
$orderCode
,
$uid
,
$gender
,
$channel
);
//将取消状态返回至浏览器
if
(
empty
(
$data
[
'code'
])
&&
empty
(
$data
[
'message'
]))
{
if
(
!
$data
)
{
$this
->
echoJson
(
array
(
'message'
=>
'取消订单失败'
));
}
else
if
(
empty
(
$data
[
'code'
])
&&
empty
(
$data
[
'message'
]))
{
$this
->
echoJson
(
array
(
'code'
=>
200
));
}
else
{
$this
->
echoJson
(
$data
);
...
...
Please
register
or
login
to post a comment