细节优化

This commit is contained in:
devil_gong 2019-08-09 16:38:33 +08:00
parent 363a7d6035
commit 22f335ef84

View File

@ -337,7 +337,11 @@ function FunEach(&$data)
*/
function PriceNumberFormat($value, $decimals = 2, $dec_point = '.')
{
return number_format($value, $decimals, $dec_point, '');
if(!empty($value))
{
return number_format($value, $decimals, $dec_point, '');
}
return 0.00;
}
/**