order-pre
parent
d0376a1f00
commit
ca9b805cb6
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue