Authored by hf

code review by fei.hong: do fixes bugs to shopping cart browse cookie buy limit goods

@@ -39,7 +39,11 @@ class ItemController extends WebAction @@ -39,7 +39,11 @@ class ItemController extends WebAction
39 $this->setTitle($seo['title'], true, '|'); 39 $this->setTitle($seo['title'], true, '|');
40 $this->setKeywords($seo['keywords']); 40 $this->setKeywords($seo['keywords']);
41 $this->setDescription($seo['description'], true); 41 $this->setDescription($seo['description'], true);
42 - $this->saveCookie($goodsId, $productInfo['goodsInfo']['skn']); 42 +
  43 + // 除限量商品外, 其余的都往COOKIE里存
  44 + if (!isset($productInfo['goodsInfo']['fashionTopGoods'])) {
  45 + $this->saveCookie($goodsId, $productInfo['goodsInfo']['skn']);
  46 + }
43 47
44 //获取商品尺寸相关 48 //获取商品尺寸相关
45 $sizeInfo = ItemModel::getSizeInfo($productInfo['goodsInfo']['skn'], $productInfo['goodsInfo']['maxSortId']); 49 $sizeInfo = ItemModel::getSizeInfo($productInfo['goodsInfo']['skn'], $productInfo['goodsInfo']['maxSortId']);
@@ -47,7 +51,7 @@ class ItemController extends WebAction @@ -47,7 +51,7 @@ class ItemController extends WebAction
47 'detail'=> array(), 51 'detail'=> array(),
48 'statGoodsInfo'=> array_merge( 52 'statGoodsInfo'=> array_merge(
49 array('fullSortName'=> implode('-', $sortNames)), 53 array('fullSortName'=> implode('-', $sortNames)),
50 - $productInfo['statGoodsInfo']), 54 + $productInfo['statGoodsInfo']),
51 ); 55 );
52 //导航 56 //导航
53 $data['detail']['pathNav'] = array_merge( 57 $data['detail']['pathNav'] = array_merge(
@@ -100,7 +104,7 @@ class ItemController extends WebAction @@ -100,7 +104,7 @@ class ItemController extends WebAction
100 $data = array('productDetailPage' => true, 104 $data = array('productDetailPage' => true,
101 'detail'=> array(), 105 'detail'=> array(),
102 'statGoodsInfo'=> array_merge(array('fullSortName'=> implode('-', $sortNames)), 106 'statGoodsInfo'=> array_merge(array('fullSortName'=> implode('-', $sortNames)),
103 - $productInfo['statGoodsInfo']), 107 + $productInfo['statGoodsInfo']),
104 ); 108 );
105 //导航 109 //导航
106 $data['detail']['pathNav'] = array_merge( 110 $data['detail']['pathNav'] = array_merge(