sunhao 5 years ago
parent
commit
24b558a661
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Api/OrderController.php

+ 1 - 1
app/Http/Controllers/Api/OrderController.php

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');