预售商品 购物车列表
parent
6dd00e6da8
commit
464dc5662c
|
|
@ -88,6 +88,8 @@ class ShoppingCartItemController extends Controller
|
|||
throw new ProductOfflineException();
|
||||
}
|
||||
|
||||
$sku->load('spu');
|
||||
|
||||
if ($input['quantity'] > $sku->saleable_stock) {
|
||||
throw new ProductNotEnoughException();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue