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

1

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