From 3e7778df3593ea4bcc59f2cbb8228bd524412c88 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 28 Apr 2020 15:24:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=9B=B6=E5=85=83=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/function.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index f03c268e7..ddaa43430 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -784,6 +784,9 @@ function unCamelize($str, $separator = '_') function convertAmountToCn($num) { //判断$num是否存在 if(!$num) return '零圆'; + if($num-0+1 == 1){ + return '零圆'; + } //保留小数点后两位 $num = round($num, 2); //将浮点转换为整数