Authored by 郝肖肖

秒杀 order-info path

... ... @@ -28,7 +28,7 @@ function init() {
msg: null,
cartType: 'ordinary'
};
window.setCookie('order-info', JSON.stringify(info), {path: '/cart'});
window.setCookie('order-info', JSON.stringify(info));
}
// info 必须是 JSON 字符串
... ... @@ -48,5 +48,5 @@ exports.orderInfo = function(key, value) {
return info[key];
}
info[key] = value;
window.setCookie('order-info', JSON.stringify(info), {path: '/cart'});
window.setCookie('order-info', JSON.stringify(info));
};
... ...
... ... @@ -484,7 +484,7 @@ class IndexController extends AbstractAction
$moreUrl = $this->server('HTTP_REFERER', '/cart/index/orderEnsure');//取跳过来的url
//购物车订单进来,秒杀进来
if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/seckill') !== false) {
if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/index/seckill') !== false) {
$this->setSession('addressMore', $moreUrl);
}
$data['addressMore'] = $this->getSession('addressMore');
... ... @@ -576,7 +576,7 @@ class IndexController extends AbstractAction
$moreUrl = $this->server('HTTP_REFERER', '/cart/index/orderEnsure');//取跳过来的url
//购物车订单进来,秒杀进来
if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/seckill') !== false) {
if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/index/seckill') !== false) {
$this->setSession('addressMore', $moreUrl);
}
... ...