mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-02 03:48:47 +08:00
细节优化
This commit is contained in:
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
Block a user