소스 검색

charge list

zz 6 년 전
부모
커밋
536d20d3a2
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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;
             }
         }
     }