Authored by Rock Zhang

修复限购商品进入结算页中选择地址再返回到结算页时逻辑错误的bug

Code Review By Rock Zhang
... ... @@ -304,9 +304,6 @@ class IndexController extends AbstractAction
$sku = $this->get('sku', '');
$skn = $this->get('skn', '');
$buyNumber = $this->get('buy_number', 1);
if ($limitProductCode) {
$returnUrl = $this->server('HTTP_REFERER', $returnUrl);
}
// 购物车商品为空跳转到购物车页面
$uid = $this->getUid(true);
... ... @@ -322,6 +319,11 @@ class IndexController extends AbstractAction
return;
}
// 限购商品时更换返回按钮地址
if (isset($order['isLimit'])) {
$returnUrl = $this->server('HTTP_REFERER', $returnUrl);
}
$data = array(
'orderEnsurePage' => true,
'isOrdinaryCart' => ($cartType !== 'advance'),
... ...