|
|
@@ -143,7 +143,7 @@ class OrderService extends BaseService
|
|
|
'cover' => $cover,
|
|
|
'unitPrice' => $unitPrice,
|
|
|
'num' => $num,
|
|
|
- 'totalPrice' => 0,
|
|
|
+ 'price' => bcmul($unitPrice, $num, 2),
|
|
|
'mainId' => $mainId,
|
|
|
];
|
|
|
//库存变化在这里
|
|
|
@@ -195,6 +195,7 @@ class OrderService extends BaseService
|
|
|
'sjId' => $sjId,
|
|
|
'shopId' => $shopId,
|
|
|
'mainId' => $mainId,
|
|
|
+ 'price' => bcmul($unitPrice, $num, 2)
|
|
|
];
|
|
|
//库存变化在这里
|
|
|
OrderItemClass::addData($currentItemData, $custom);
|