Authored by 郝肖肖

发票 秒杀URl

@@ -481,6 +481,12 @@ class IndexController extends AbstractAction @@ -481,6 +481,12 @@ class IndexController extends AbstractAction
481 481
482 $this->setTitle('发票信息'); 482 $this->setTitle('发票信息');
483 $this->setNavHeader('发票信息', true, false); // 不显示右上角home按钮 483 $this->setNavHeader('发票信息', true, false); // 不显示右上角home按钮
  484 +
  485 + $moreUrl = $this->server('HTTP_REFERER', '/cart/index/orderEnsure');//取跳过来的url
  486 + //购物车订单进来,秒杀进来
  487 + if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/seckill') !== false) {
  488 + $this->setSession('addressMore', $moreUrl);
  489 + }
484 $data['addressMore'] = $this->getSession('addressMore'); 490 $data['addressMore'] = $this->getSession('addressMore');
485 491
486 $this->_view->display('invoice-info', $data); 492 $this->_view->display('invoice-info', $data);
@@ -574,7 +580,7 @@ class IndexController extends AbstractAction @@ -574,7 +580,7 @@ class IndexController extends AbstractAction
574 $this->setSession('addressMore', $moreUrl); 580 $this->setSession('addressMore', $moreUrl);
575 } 581 }
576 582
577 - $moreUrl = $this->getSession('addressMore', '/cart/index/orderEnsure'); 583 + $moreUrl = $this->getSession('addressMore');
578 $this->setNavHeader('选择地址', $moreUrl, false); 584 $this->setNavHeader('选择地址', $moreUrl, false);
579 585
580 $this->_view->display('select-address', array( 586 $this->_view->display('select-address', array(