Authored by Rock Zhang

修复结算时url参数传递的cartType与cokie中的cartType冲突的bug

@@ -276,10 +276,10 @@ class IndexController extends AbstractAction @@ -276,10 +276,10 @@ class IndexController extends AbstractAction
276 $this->setNavHeader('确认订单', Helpers::url('/cart/index/index'), false); // 不显示右上角home按钮 276 $this->setNavHeader('确认订单', Helpers::url('/cart/index/index'), false); // 不显示右上角home按钮
277 277
278 // 购物车商品为空跳转到购物车页面 278 // 购物车商品为空跳转到购物车页面
279 - $cartType = $this->get('cartType', 'ordinary'); 279 + $cartType = $this->get('cartType', '');
280 $cookieData = $this->getCookie('order-info', null); 280 $cookieData = $this->getCookie('order-info', null);
281 $orderInfo = array(); 281 $orderInfo = array();
282 - if (!empty($cookieData)) { 282 + if (empty($cartType) && !empty($cookieData)) {
283 $orderInfo = json_decode($cookieData, true); 283 $orderInfo = json_decode($cookieData, true);
284 $cartType = $orderInfo['cartType']; 284 $cartType = $orderInfo['cartType'];
285 } 285 }