限购商品购买前验证接口添加错误信息字段
Code Review By Rock Zhang
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -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 | } |
-
Please register or login to post a comment