Showing
2 changed files
with
2 additions
and
2 deletions
@@ -78,8 +78,8 @@ class ItemModel | @@ -78,8 +78,8 @@ class ItemModel | ||
78 | $goodsInfo['vipPrice'] = self::getVipDataByProductBaseInfo($baseInfo, $vipLevel, $uid); | 78 | $goodsInfo['vipPrice'] = self::getVipDataByProductBaseInfo($baseInfo, $vipLevel, $uid); |
79 | //促销活动banner | 79 | //促销活动banner |
80 | $goodsInfo['activity'] = self::getActivityDataByProductBaseInfo($baseInfo); | 80 | $goodsInfo['activity'] = self::getActivityDataByProductBaseInfo($baseInfo); |
81 | - | ||
82 | - if (isset($baseInfo['productPriceBo']['yohoCoinNum'])) { | 81 | + |
82 | + if (isset($baseInfo['productPriceBo']['yohoCoinNum']) && $baseInfo['productPriceBo']['yohoCoinNum'] !== 0) { | ||
83 | array_push($goodsInfo['activity'], | 83 | array_push($goodsInfo['activity'], |
84 | array('type' => '返YOHO币', 'des' => '每件返 ' . $baseInfo['productPriceBo']['yohoCoinNum'] . '个 YOHO币') | 84 | array('type' => '返YOHO币', 'des' => '每件返 ' . $baseInfo['productPriceBo']['yohoCoinNum'] . '个 YOHO币') |
85 | ); | 85 | ); |
-
Please register or login to post a comment