作者 何书鹏
1 个管道 的构建 通过 耗费 1 秒

测试购物车

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