Showing
1 changed file
with
2 additions
and
2 deletions
@@ -570,11 +570,11 @@ class IndexController extends AbstractAction | @@ -570,11 +570,11 @@ class IndexController extends AbstractAction | ||
570 | $moreUrl = $this->server('HTTP_REFERER', '/cart/index/orderEnsure');//取跳过来的url | 570 | $moreUrl = $this->server('HTTP_REFERER', '/cart/index/orderEnsure');//取跳过来的url |
571 | //购物车订单进来,秒杀进来 | 571 | //购物车订单进来,秒杀进来 |
572 | if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/seckill') !== false) { | 572 | if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/seckill') !== false) { |
573 | - $this->setCookie('addressMore', $moreUrl); | 573 | + $this->setSession('addressMore', $moreUrl); |
574 | $_COOKIE['addressMore'] = $moreUrl;//第一次设置无效 | 574 | $_COOKIE['addressMore'] = $moreUrl;//第一次设置无效 |
575 | } | 575 | } |
576 | 576 | ||
577 | - $moreUrl = $this->getCookie('addressMore', '/cart/index/orderEnsure'); | 577 | + $moreUrl = $this->getSession('addressMore', '/cart/index/orderEnsure'); |
578 | $this->setNavHeader('选择地址', $moreUrl, false); | 578 | $this->setNavHeader('选择地址', $moreUrl, false); |
579 | 579 | ||
580 | $this->_view->display('select-address', array( | 580 | $this->_view->display('select-address', array( |
-
Please register or login to post a comment