shish 2 месяцев назад
Родитель
Сommit
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)) {
                     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 {
             $productList = json_decode($productJson, true);