From f01668af91d512e1693b185dbad8d579f3bcf92d Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 26 二月 2024 14:40:53 +0800 Subject: [PATCH] 10135 【港台】【主干】【砍树】【后端】支持代金券购买 --- ServerPython/CoreServerGroup/GameServer/Script/CommFunc.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/CommFunc.py b/ServerPython/CoreServerGroup/GameServer/Script/CommFunc.py index 3e65f93..6a580bd 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/CommFunc.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/CommFunc.py @@ -565,5 +565,5 @@ @return: 转化为分数值 ''' # 由于float会有不精确的现象出现xxx.9999999的问题,所以这里计算出的结果向上取整 - return int(math.ceil(floatRMB * 100)) + return int(math.ceil(round(floatRMB * 100))) -- Gitblit v1.8.0