|
|
@@ -157,6 +157,7 @@ class OrderService extends BaseService
|
|
|
}
|
|
|
$ptItemId = $itemInfo[$currentId]['itemId'] ?? 0;
|
|
|
$classId = $itemInfo[$currentId]['classId'] ?? 0;
|
|
|
+ $belongCost = $itemInfo[$currentId]['belongCost'] ?? 0;
|
|
|
$currentItemData = [
|
|
|
'name' => $name,
|
|
|
'cover' => $cover,
|
|
|
@@ -178,6 +179,7 @@ class OrderService extends BaseService
|
|
|
'mainId' => $mainId,
|
|
|
'price' => bcmul($unitPrice, $num, 2),
|
|
|
'classId' => $classId,
|
|
|
+ 'belongCost' => $belongCost,
|
|
|
];
|
|
|
//库存变化在这里
|
|
|
OrderItemClass::addData($currentItemData, $custom);
|