Authored by biao

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into fix/issue

@@ -583,8 +583,11 @@ class Helpers @@ -583,8 +583,11 @@ class Helpers
583 $oneGoods['isVipPrice'] = $value['sales_price'] !== $value['last_vip_price']; 583 $oneGoods['isVipPrice'] = $value['sales_price'] !== $value['last_vip_price'];
584 $oneGoods['count'] = $value['buy_number']; 584 $oneGoods['count'] = $value['buy_number'];
585 585
586 - if ($isValid) { // 库存不足 586 + if ($isValid) {
  587 + // 库存不足
587 $oneGoods['lowStocks'] = ($value['buy_number'] > $value['storage_number']); 588 $oneGoods['lowStocks'] = ($value['buy_number'] > $value['storage_number']);
  589 + } else { // 失效商品
  590 + $oneGoods['inValid'] = true;
588 } 591 }
589 592
590 //gift=>是否赠品,advanceBuy=>是否加价购,soldOut=>失效商品; 593 //gift=>是否赠品,advanceBuy=>是否加价购,soldOut=>失效商品;