Browse Source

charge list

zz 6 năm trước cách đây
mục cha
commit
536d20d3a2
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      app/Http/Controllers/Wap/Order/OrdersController.php

+ 4 - 1
app/Http/Controllers/Wap/Order/OrdersController.php

@@ -807,7 +807,10 @@ class OrdersController extends BaseController
             if(!$item->switch_to) continue;
             $order = Order::where('uid',$this->uid)->where('status','PAID')->where('product_id',$item->id)->first();
             if($order){
-                $item = ProductService::getProductSingle($item->switch_to);
+                $change = ProductService::getProductSingle($item->switch_to);
+                $item->id = $change->id;
+                $item->price = $change->price;
+                $item->given = $change->given;
             }
         }
     }