细节优化
parent
363a7d6035
commit
22f335ef84
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue