修复限购商品进入结算页中选择地址再返回到结算页时逻辑错误的bug
Code Review By Rock Zhang
Showing
1 changed file
with
5 additions
and
3 deletions
@@ -304,9 +304,6 @@ class IndexController extends AbstractAction | @@ -304,9 +304,6 @@ class IndexController extends AbstractAction | ||
304 | $sku = $this->get('sku', ''); | 304 | $sku = $this->get('sku', ''); |
305 | $skn = $this->get('skn', ''); | 305 | $skn = $this->get('skn', ''); |
306 | $buyNumber = $this->get('buy_number', 1); | 306 | $buyNumber = $this->get('buy_number', 1); |
307 | - if ($limitProductCode) { | ||
308 | - $returnUrl = $this->server('HTTP_REFERER', $returnUrl); | ||
309 | - } | ||
310 | 307 | ||
311 | // 购物车商品为空跳转到购物车页面 | 308 | // 购物车商品为空跳转到购物车页面 |
312 | $uid = $this->getUid(true); | 309 | $uid = $this->getUid(true); |
@@ -322,6 +319,11 @@ class IndexController extends AbstractAction | @@ -322,6 +319,11 @@ class IndexController extends AbstractAction | ||
322 | return; | 319 | return; |
323 | } | 320 | } |
324 | 321 | ||
322 | + // 限购商品时更换返回按钮地址 | ||
323 | + if (isset($order['isLimit'])) { | ||
324 | + $returnUrl = $this->server('HTTP_REFERER', $returnUrl); | ||
325 | + } | ||
326 | + | ||
325 | $data = array( | 327 | $data = array( |
326 | 'orderEnsurePage' => true, | 328 | 'orderEnsurePage' => true, |
327 | 'isOrdinaryCart' => ($cartType !== 'advance'), | 329 | 'isOrdinaryCart' => ($cartType !== 'advance'), |
-
Please register or login to post a comment