...
|
...
|
@@ -197,7 +197,6 @@ class Cart extends Api |
|
|
// 检查库存
|
|
|
$goods = Goods::get($cart['goods_id'],['spec_rel.spec']);
|
|
|
$goods_sku = $goods->getGoodsSku($cart['spec_sku_id']);
|
|
|
halt($goods_sku);
|
|
|
if($goods['ismake'] == '0' && $goods_sku['stock_num'] < $goods_num){
|
|
|
$this->error(__('商品库存不足'.$goods_num.'件'));
|
|
|
}
|
...
|
...
|
|