Authored by Rock Zhang

限购商品购买前验证接口添加错误信息字段

Code Review By Rock Zhang
@@ -345,6 +345,7 @@ class CartModel @@ -345,6 +345,7 @@ class CartModel
345 if (!$pay || $pay['code'] != 200 || empty($pay['data']['goods_list'])) { 345 if (!$pay || $pay['code'] != 200 || empty($pay['data']['goods_list'])) {
346 if ($isLimitGoods) { 346 if ($isLimitGoods) {
347 $result['error'] = true; 347 $result['error'] = true;
  348 + $result['message'] = $pay['message'];
348 } else { 349 } else {
349 $result['cartUrl'] = Helpers::url('/cart/index/index'); 350 $result['cartUrl'] = Helpers::url('/cart/index/index');
350 } 351 }