From 4bc77e3c629f8fa7b40629d2822a14fd8e5d7e90 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 19 一月 2021 20:01:11 +0800
Subject: [PATCH] 8701 【主干】【后端】活动相关的充值界面显示优化(永久累充、每日礼包、限时礼包、累计充值);

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py
index ce16469..9781308 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py
@@ -592,3 +592,10 @@
         
     return ""
 
+def RMBToCoin(floatRMB):
+    ''' 元转为分,统一函数,方便修改及搜索
+    @param floatRMB: 单位元,float 类型,支持 RMB 或 美元
+    @return: 转化为分数值
+    '''
+    # 由于float会有不精确的现象出现xxx.9999999的问题,所以这里计算出的结果向上取整
+    return int(math.ceil(floatRMB * 100))

--
Gitblit v1.8.0