6
0
Fork 0

order-pre

release
panliang 2022-05-18 14:48:05 +08:00
parent d0376a1f00
commit ca9b805cb6
1 changed files with 7 additions and 5 deletions

View File

@ -110,6 +110,7 @@ class OrderService
?string $note = null, ?string $note = null,
?BargainOrder $bargainOrder = null, ?BargainOrder $bargainOrder = null,
): Order { ): Order {
if ($shippingAddressId) {
foreach ($products as $product) { foreach ($products as $product) {
$sku = $product['sku']; $sku = $product['sku'];
@ -117,6 +118,7 @@ class OrderService
throw new BizException('商品库存不足'); throw new BizException('商品库存不足');
} }
} }
}
$shippingAddress = $this->getShippingAddress($user, $shippingAddressId); $shippingAddress = $this->getShippingAddress($user, $shippingAddressId);