code review by fei.hong: do modify skn limit codes
Showing
2 changed files
with
12 additions
and
0 deletions
@@ -341,6 +341,12 @@ class DetailModel | @@ -341,6 +341,12 @@ class DetailModel | ||
341 | $result['cartInfo']['soldOut'] = true; | 341 | $result['cartInfo']['soldOut'] = true; |
342 | } | 342 | } |
343 | 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 | + } | ||
349 | + | ||
344 | // 是否收藏 | 350 | // 是否收藏 |
345 | $result['isCollect'] = false; | 351 | $result['isCollect'] = false; |
346 | if (isset($baseInfo['isCollect']) && $baseInfo['isCollect'] === 'Y') { | 352 | if (isset($baseInfo['isCollect']) && $baseInfo['isCollect'] === 'Y') { |
@@ -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;//虚拟商品 |
-
Please register or login to post a comment