From c88da7ddd265d096291903711e91c4a01ba101f1 Mon Sep 17 00:00:00 2001 From: Devil Date: Sun, 22 Dec 2019 16:38:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=85=B1=E5=87=BD=E6=95=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/common.php b/application/common.php index a5983f68e..2410a0887 100755 --- a/application/common.php +++ b/application/common.php @@ -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; } -- GitLab