修改API的物流显示模块
This commit is contained in:
parent
c1b88ef73e
commit
a5d072e3f7
@ -1399,6 +1399,7 @@ class OrderLogic extends Logic
|
||||
$lists->append(['goods_count', 'pay_btn', 'cancel_btn', 'delivery_btn', 'take_btn', 'del_btn', 'comment_btn', 'content_btn','order_cancel_time']);
|
||||
|
||||
foreach ($lists as $list) {
|
||||
dump($list);
|
||||
if ($list['order_type'] == OrderEnum::SECKILL_ORDER) {//如果是秒杀
|
||||
foreach ($list['order_goods'] as $item) {
|
||||
$seckill_price = GoodsItem::isSeckill($item['item_id']);
|
||||
@ -1437,9 +1438,13 @@ class OrderLogic extends Logic
|
||||
}
|
||||
}
|
||||
|
||||
// 获取对应的物流
|
||||
$list['delivery_data'] = Delivery::where(['order_id' => $list['id']])->select()->toArray();
|
||||
|
||||
//取消订单按钮
|
||||
$list['cancel_btn'] = 1;
|
||||
}
|
||||
die;
|
||||
$data = [
|
||||
'list' => $lists,
|
||||
'page' => $page,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user