Authored by hf

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

... ... @@ -341,12 +341,6 @@ class DetailModel
$result['cartInfo']['soldOut'] = true;
}
$skns = array(51116461,51215621,51215620,51215622,51216345,51216346,51215618,51215619);
//暂时处理
if(in_array($baseInfo['erpProductId'], $skns)) {
$result['cartInfo']['soldOut'] = true;
}
// 是否收藏
$result['isCollect'] = false;
if (isset($baseInfo['isCollect']) && $baseInfo['isCollect'] === 'Y') {
... ...
... ... @@ -34,7 +34,6 @@ class ItemModel
$statGoodsInfo = array();
$banner = array();
$baseInfo = ItemData::baseInfo($productId, $uid, $productSkn);
if(empty($baseInfo['productName']) && empty($baseInfo['erpProductId']) && empty($baseInfo['productPriceBo'])) {
return array();
}
... ... @@ -136,12 +135,7 @@ class ItemModel
$goodsInfo['buyNow'] = $fashTopGoods['buyNow'];//是否立即购买
}
}
$skns = array(51116461,51215621,51215620,51215622,51216345,51216346,51215618,51215619);
//暂时处理
if(in_array($baseInfo['erpProductId'], $skns)) {
$goodsInfo['soldOut'] = true;
$totalStorageNum = 0;
}
$soldOut = $baseInfo['status'] == 0 || $totalStorageNum === 0;
$notForSale = $baseInfo['attribute'] == 2;//非卖品
$virtualGoods = $baseInfo['attribute'] == 3;//虚拟商品
... ... @@ -1183,7 +1177,6 @@ class ItemModel
$result['hasLimitedCode'] = true;
$result['limitedCodeSoldOut'] = true;
$result['getLimitedCode'] = false;
break;
case 6: // 开售前,即将开售(用户已领取限购码)
$result['openSoon'] = true;
... ...