Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
01d7b4e96e28bc7db59693afe74015647098ca0f
1 parent
55cd6cb9
fixes bug to my home order show cancel status str
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Home/Order.php
yohobuy/m.yohobuy.com/application/models/Home/Order.php
View file @
01d7b4e
...
...
@@ -23,7 +23,7 @@ class OrderModel
{
$result
=
array
();
//调用接口获得数据
$data
=
OrderData
::
getOrderData
(
$type
,
$page
,
$limit
,
$gender
,
$yh_channel
,
$uid
);
$data
=
OrderData
::
getOrderData
(
$type
,
$page
,
$limit
,
$gender
,
$yh_channel
,
7394907
);
// 判断是否还有数据, 没有数据则返回空
if
(
isset
(
$data
[
'data'
][
'page_total'
])
&&
$page
>
$data
[
'data'
][
'page_total'
])
{
return
$result
;
...
...
@@ -33,7 +33,7 @@ class OrderModel
foreach
(
$data
[
'data'
][
'order_list'
]
as
$key
=>
$vo
)
{
//订单号,支付状态,订单商品数量,订单总价格
$result
[
$key
][
'orderNum'
]
=
$vo
[
'order_code'
];
$result
[
$key
][
'orderStatus'
]
=
$vo
[
'status_str'
];
$result
[
$key
][
'orderStatus'
]
=
(
$vo
[
'is_cancel'
]
===
'Y'
)
?
'已取消'
:
$vo
[
'status_str'
];
$result
[
$key
][
'count'
]
=
count
(
$vo
[
'order_goods'
]);
$result
[
$key
][
'sumCost'
]
=
$vo
[
'amount'
];
//类内调用格式化订单商品数据方法
...
...
Please
register
or
login
to post a comment