Authored by Rock Zhang

利用限购码多次下单商品时不跳转到错误页,改成在限购商品详情页刷新

@@ -307,7 +307,12 @@ class IndexController extends AbstractAction @@ -307,7 +307,12 @@ class IndexController extends AbstractAction
307 $this->go($order['cartUrl']); 307 $this->go($order['cartUrl']);
308 } 308 }
309 if (isset($order['error'])) { // 限购商品支付接口返回为空或错误时 309 if (isset($order['error'])) { // 限购商品支付接口返回为空或错误时
310 - $this->error(); 310 + if ($this->isAjax()) {
  311 + $this->echoJson($order);
  312 + return;
  313 + } else {
  314 + $this->error();
  315 + }
311 } 316 }
312 317
313 $data = array( 318 $data = array(