Authored by Rock Zhang

修复收藏的商品中的判断相对收藏时下降的价格处理的bug

framework @ e9d066dd
1 -Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2 1 +Subproject commit e9d066dd88a8e7e37103021c427a205a5cfcdcec
@@ -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;