Authored by Rock Zhang

优化限购商品购买判定接口的返回

Code Review By Rock Zhang
... ... @@ -306,13 +306,10 @@ class IndexController extends AbstractAction
if (isset($order['cartUrl'])) { // 普通或者预售商品为空时
$this->go($order['cartUrl']);
}
if (isset($order['error'])) { // 限购商品支付接口返回为空或错误时
if ($this->isAjax()) {
$this->echoJson($order);
return;
} else {
$this->error();
}
if ($this->isAjax()) { // 限购商品支付接口返回为空或错误时(异步请求)
$this->echoJson($order);
return;
}
$data = array(
... ...