Authored by 郝肖肖

新人楼层价格保留二位小数

@@ -475,8 +475,8 @@ class FloorProcess @@ -475,8 +475,8 @@ class FloorProcess
475 $result['list'][$key]['url'] = Helpers::getUrlBySkc($val['product_id'], $val['goods_list'][0]['goods_id'], $val['cn_alphabet']); 475 $result['list'][$key]['url'] = Helpers::getUrlBySkc($val['product_id'], $val['goods_list'][0]['goods_id'], $val['cn_alphabet']);
476 $result['list'][$key]['img'] = helpers::getImageUrl($val['default_images'], 235, 314); 476 $result['list'][$key]['img'] = helpers::getImageUrl($val['default_images'], 235, 314);
477 $result['list'][$key]['title'] = $val['product_name']; 477 $result['list'][$key]['title'] = $val['product_name'];
478 - $result['list'][$key]['salePrice'] = $val['sales_price'];  
479 - $result['list'][$key]['price'] = $val['market_price']; 478 + $result['list'][$key]['salePrice'] = number_format($val['sales_price'], 2);
  479 + $result['list'][$key]['price'] = number_format($val['market_price'], 2);
480 } 480 }
481 return array('freshOnly'=>$result); 481 return array('freshOnly'=>$result);
482 } 482 }