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

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

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