作者 耿培杰

修改订单付款接口

... ... @@ -1202,8 +1202,7 @@ class Order extends Api
if ($v['type'] == 2) {
//判断积分商品是否有库存
$is_stock = $this->integralGoodsModel->checkStockNum($v['goods_id'], $v['number']);
halt(!$is_stock);
if (!$is_stock) $this->error($v['ch_goods_name'] . ' 库存不足');
if (!$is_stock) $this->error($v['ch_goods_name'] . ' 库存不足1');
} else {
//判断商品是否有库存
$is_stock = $this->goodsModel->checkStockNum($v['goods_id'], $v['number']);
... ...