|
@@ -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;
|
|
|
}
|
|
|
}
|
|
|
}
|