From ceab1684db30af30fe80c1d52f071e25eeb771fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Wed, 3 Sep 2025 16:00:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E7=9B=8A=E8=AE=A1=E7=AE=97=E5=B0=8F?= =?UTF-8?q?=E6=95=B0=E7=82=B9=E4=BF=9D=E7=95=994=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/common.php b/application/common.php index 9b371d7..dcfd81b 100644 --- a/application/common.php +++ b/application/common.php @@ -1102,7 +1102,10 @@ function handelCharge($where,$data){ function coin_earning($all_gift_price,$ratio){ //rmb_coin_ratio 人民币转换金币的比例 //金币转换人民币 - return $all_gift_price * $ratio / 100 / get_system_config_value('rmb_coin_ratio'); + //小数点保留4位 + $result = $all_gift_price * $ratio / 100 / get_system_config_value('rmb_coin_ratio'); + + return round($result, 4); } /**