WIN-2308041133\Administrator 5 months ago
parent
commit
2975fd6663
1 changed files with 1 additions and 3 deletions
  1. 1 3
      app/common/repositories/store/order/StoreOrderRepository.php

+ 1 - 3
app/common/repositories/store/order/StoreOrderRepository.php

@@ -1084,9 +1084,7 @@ class StoreOrderRepository extends BaseRepository
     public function getOrderAward($order)
     {
         $cartIdArray = explode(',', $order['cart_id']); // 使用逗号分割字符串
-        var_dump($order['cart_id']);
-        var_dump($cartIdArray[0]);die();
-        $product_id = StoreCart::where('id', $cartIdArray[0])->value('product_id');
+        $product_id = StoreCart::where('cart_id', $cartIdArray[0])->value('product_id');
         $product_type = StoreProduct::where('product_id', $product_id)->value('type');
         // 创建用户账单仓库实例
         $make = app()->make(UserBillRepository::class);