...
|
...
|
@@ -194,6 +194,7 @@ class Cart extends Api |
|
|
$cart = $this->model->get($cart_id);
|
|
|
empty($cart) && $this->error(__('购物车信息不存在'));
|
|
|
$goods_num < 1 && $this->error(__('商品数量不能小于1'));
|
|
|
halt($cart['spec']->toArray());
|
|
|
if($cart['goods']['ismake'] == '0' && $cart['spec']['stock_num'] < $goods_num){
|
|
|
$this->error(__('商品库存不足'.$goods_num.'件'));
|
|
|
}
|
...
|
...
|
|