Authored by 郝肖肖

秒杀 order-info path

@@ -28,7 +28,7 @@ function init() { @@ -28,7 +28,7 @@ function init() {
28 msg: null, 28 msg: null,
29 cartType: 'ordinary' 29 cartType: 'ordinary'
30 }; 30 };
31 - window.setCookie('order-info', JSON.stringify(info), {path: '/cart'}); 31 + window.setCookie('order-info', JSON.stringify(info));
32 } 32 }
33 33
34 // info 必须是 JSON 字符串 34 // info 必须是 JSON 字符串
@@ -48,5 +48,5 @@ exports.orderInfo = function(key, value) { @@ -48,5 +48,5 @@ exports.orderInfo = function(key, value) {
48 return info[key]; 48 return info[key];
49 } 49 }
50 info[key] = value; 50 info[key] = value;
51 - window.setCookie('order-info', JSON.stringify(info), {path: '/cart'}); 51 + window.setCookie('order-info', JSON.stringify(info));
52 }; 52 };
@@ -484,7 +484,7 @@ class IndexController extends AbstractAction @@ -484,7 +484,7 @@ class IndexController extends AbstractAction
484 484
485 $moreUrl = $this->server('HTTP_REFERER', '/cart/index/orderEnsure');//取跳过来的url 485 $moreUrl = $this->server('HTTP_REFERER', '/cart/index/orderEnsure');//取跳过来的url
486 //购物车订单进来,秒杀进来 486 //购物车订单进来,秒杀进来
487 - if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/seckill') !== false) { 487 + if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/index/seckill') !== false) {
488 $this->setSession('addressMore', $moreUrl); 488 $this->setSession('addressMore', $moreUrl);
489 } 489 }
490 $data['addressMore'] = $this->getSession('addressMore'); 490 $data['addressMore'] = $this->getSession('addressMore');
@@ -576,7 +576,7 @@ class IndexController extends AbstractAction @@ -576,7 +576,7 @@ class IndexController extends AbstractAction
576 576
577 $moreUrl = $this->server('HTTP_REFERER', '/cart/index/orderEnsure');//取跳过来的url 577 $moreUrl = $this->server('HTTP_REFERER', '/cart/index/orderEnsure');//取跳过来的url
578 //购物车订单进来,秒杀进来 578 //购物车订单进来,秒杀进来
579 - if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/seckill') !== false) { 579 + if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/index/seckill') !== false) {
580 $this->setSession('addressMore', $moreUrl); 580 $this->setSession('addressMore', $moreUrl);
581 } 581 }
582 582