chuweiqiang 1 năm trước cách đây
mục cha
commit
251193bffc

+ 1 - 0
application/api/controller/Order.php

@@ -245,6 +245,7 @@ class Order extends Api
 
 
         $goods = $OrderGoods->where('order_id',$order['id'])->select();
         $goods = $OrderGoods->where('order_id',$order['id'])->select();
         foreach ($goods as $k => $v){
         foreach ($goods as $k => $v){
+            $UserGoods = new UserGoods();
             $g_arr = [
             $g_arr = [
                 'goods_type' => $v['goods_type'],
                 'goods_type' => $v['goods_type'],
                 'goods_id' => $v['goods_id'],
                 'goods_id' => $v['goods_id'],