|
|
|
|
69
|
);
|
69
|
);
|
70
|
|
70
|
|
71
|
foreach($result as $k=>&$v){
|
71
|
foreach($result as $k=>&$v){
|
72
|
- $goods = DB::table('order_goods_skus')->where('order_id', $v['id'])->where('is_del', 0)->get();
|
|
|
|
|
72
|
+ $goods = DB::table('order_goods_skus')->where('order_id', $v['id'])->where('is_del', 0)->orderBy('gift_id', 'asc')->get();
|
73
|
if(!empty($goods)){
|
73
|
if(!empty($goods)){
|
74
|
foreach($goods as &$item){
|
74
|
foreach($goods as &$item){
|
75
|
$item->goods_name = Goods::where('id', $item->goods_id)->pluck('name');
|
75
|
$item->goods_name = Goods::where('id', $item->goods_id)->pluck('name');
|