release
parent
3005f25e1d
commit
9d156f4351
|
|
@ -52,7 +52,7 @@ class OrderPreController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
// 验证商品库存(店铺库存)
|
// 验证商品库存(店铺库存)
|
||||||
if ($store_product->pivot->amount < $quantity) {
|
if ($store_product->pivot->amount < $send) {
|
||||||
throw new BizException('店铺商品: ' . $store_product->name . ' 库存不足');
|
throw new BizException('店铺商品: ' . $store_product->name . ' 库存不足');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue