Authored by hf

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

... ... @@ -340,6 +340,12 @@ class DetailModel
elseif ($soldOut) {
$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;
... ...
... ... @@ -136,6 +136,12 @@ 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;//虚拟商品
... ...