提交 e104af4a 编写于 作者: D devil_gong

Merge branch 'v1.8.0' of gitee.com:gongfuxiang/shopxo into v1.8.0

......@@ -774,12 +774,16 @@ function PriceBeautify($price = 0, $default = null)
}
$price = str_replace('.00', '', $price);
if(strpos ($price, '.') !== false)
if(strpos($price, '.') !== false)
{
if(substr($price, -1) == 0)
{
$price = substr($price, 0, -1);
}
}
if(substr($price, -1) == '.')
{
$price = substr($price, 0, -1);
}
}
return $price;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册