shish 2 ماه پیش
والد
کامیت
68523e42dc
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      app-ghs/controllers/OrderController.php

+ 2 - 1
app-ghs/controllers/OrderController.php

@@ -1286,7 +1286,8 @@ class OrderController extends BaseController
                 if (empty($zjGatheringItemInfo)) {
                 if (empty($zjGatheringItemInfo)) {
                     util::fail('请设置收款的商品呢');
                     util::fail('请设置收款的商品呢');
                 }
                 }
-                $productList = [['productId' => $zjGatheringItem, 'bigNum' => 1, 'smallNum' => 0, 'classId' => 0, 'price' => $gatheringPrice]];
+                $zjPtItemId = $zjGatheringItemInfo->itemId ?? 0;
+                $productList = [['productId' => $zjGatheringItem, 'itemId' => $zjPtItemId, 'bigNum' => 1, 'smallNum' => 0, 'classId' => 0, 'price' => $gatheringPrice]];
             }
             }
         } else {
         } else {
             $productList = json_decode($productJson, true);
             $productList = json_decode($productJson, true);