Authored by hf

code review by fei.hong: do modify skn limit codes

@@ -340,6 +340,12 @@ class DetailModel @@ -340,6 +340,12 @@ class DetailModel
340 elseif ($soldOut) { 340 elseif ($soldOut) {
341 $result['cartInfo']['soldOut'] = true; 341 $result['cartInfo']['soldOut'] = true;
342 } 342 }
  343 +
  344 + $skns = array(51116461,51215621,51215620,51215622,51216345,51216346,51215618,51215619);
  345 + //暂时处理
  346 + if(in_array($baseInfo['erpProductId'], $skns)) {
  347 + $result['cartInfo']['soldOut'] = true;
  348 + }
343 349
344 // 是否收藏 350 // 是否收藏
345 $result['isCollect'] = false; 351 $result['isCollect'] = false;
@@ -136,6 +136,12 @@ class ItemModel @@ -136,6 +136,12 @@ class ItemModel
136 $goodsInfo['buyNow'] = $fashTopGoods['buyNow'];//是否立即购买 136 $goodsInfo['buyNow'] = $fashTopGoods['buyNow'];//是否立即购买
137 } 137 }
138 } 138 }
  139 + $skns = array(51116461,51215621,51215620,51215622,51216345,51216346,51215618,51215619);
  140 + //暂时处理
  141 + if(in_array($baseInfo['erpProductId'], $skns)) {
  142 + $goodsInfo['soldOut'] = true;
  143 + $totalStorageNum = 0;
  144 + }
139 $soldOut = $baseInfo['status'] == 0 || $totalStorageNum === 0; 145 $soldOut = $baseInfo['status'] == 0 || $totalStorageNum === 0;
140 $notForSale = $baseInfo['attribute'] == 2;//非卖品 146 $notForSale = $baseInfo['attribute'] == 2;//非卖品
141 $virtualGoods = $baseInfo['attribute'] == 3;//虚拟商品 147 $virtualGoods = $baseInfo['attribute'] == 3;//虚拟商品