|
|
@@ -60,9 +60,11 @@ class OrderItemClass extends BaseClass
|
|
|
$respond = ProductClass::formatProductInfo($product, $level);
|
|
|
$product = $respond['product'];
|
|
|
$weight = 0;
|
|
|
+ $mainId = $post['mainId'] ?? 0;
|
|
|
self::deleteByCondition(['orderSn' => $orderSn]);
|
|
|
foreach ($product as $key => $val) {
|
|
|
$val['orderSn'] = $orderSn;
|
|
|
+ $val['mainId'] = $mainId;
|
|
|
$item = self::add($val, true);
|
|
|
|
|
|
$currentId = $item->id ?? 0;
|