修复收藏的商品中的判断相对收藏时下降的价格处理的bug
Showing
2 changed files
with
2 additions
and
2 deletions
framework @ e9d066dd
@@ -182,7 +182,7 @@ class UserModel | @@ -182,7 +182,7 @@ class UserModel | ||
182 | $product['title'] = $val['product_name']; | 182 | $product['title'] = $val['product_name']; |
183 | $product['price'] = !empty($val['market_price']) ? '¥'.$val['market_price'] . '.00' : 0; | 183 | $product['price'] = !empty($val['market_price']) ? '¥'.$val['market_price'] . '.00' : 0; |
184 | $product['discountPrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥' . $val['sales_price'] . '.00' : false; | 184 | $product['discountPrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥' . $val['sales_price'] . '.00' : false; |
185 | - $product['savePrice'] = !empty($val['price_down'] > 0) ? '¥'.$val['price_down'] . '.00' : false; | 185 | + $product['savePrice'] = ($val['price_down'] > 0) ? '¥'.$val['price_down'] . '.00' : false; |
186 | $product['sellOut'] = ($val['storage'] <= 0); | 186 | $product['sellOut'] = ($val['storage'] <= 0); |
187 | 187 | ||
188 | $datas[] = $product; | 188 | $datas[] = $product; |
-
Please register or login to post a comment