Showing
1 changed file
with
2 additions
and
2 deletions
@@ -239,8 +239,8 @@ class UserModel | @@ -239,8 +239,8 @@ class UserModel | ||
239 | $product = array(); | 239 | $product = array(); |
240 | $product['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : ''; | 240 | $product['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : ''; |
241 | $product['imgUrl'] = (isset($one['default_images']) && !empty($one['default_images'])) ? Images::getImageUrl($one['default_images'], 235, 314) : ''; | 241 | $product['imgUrl'] = (isset($one['default_images']) && !empty($one['default_images'])) ? Images::getImageUrl($one['default_images'], 235, 314) : ''; |
242 | - $product['price'] = !empty($one['market_price']) ? '¥' . $one['market_price'] . '.00' : 0; | ||
243 | - $product['discount'] = !empty($one['sales_price']) ? '¥' . $one['sales_price'] . '.00' : 0; | 242 | + $product['price'] = !empty($one['market_price']) ? '¥' . $one['market_price'] : 0; |
243 | + $product['discount'] = !empty($one['sales_price']) ? '¥' . $one['sales_price'] : 0; | ||
244 | 244 | ||
245 | $brand['productList'][] = $product; | 245 | $brand['productList'][] = $product; |
246 | } | 246 | } |
-
Please register or login to post a comment