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/Player/PlayerFlashGiftbag.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
index d86ac36..40f701b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
@@ -28,6 +28,7 @@
 import ItemCommon
 import GameWorld
 import ChConfig
+import CommFunc
 
 
 def GetGiftbagTypeList(cfgID, dayIndex, woldLV):
@@ -163,7 +164,7 @@
     notifyKey = giftbagIpyData.GetNotifyKey()
     if notifyKey:
         orderIpyData = GetFlashGiftbagIDOrderInfoIpyData(giftbagID, appID)
-        rmb = 0 if not orderIpyData else int(orderIpyData.GetPayRMBNum())
+        rmb = "0" if not orderIpyData else str(orderIpyData.GetPayRMBNum()) # RMB支持小数,这里直接转str广播
         PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), rmb, giftbagIpyData.GetMainItemID()])
     
     SyncFlashGiftbagBuyCount(curPlayer, [giftbagID])
@@ -273,8 +274,8 @@
             giftBag.OrderInfo = "" if not orderIpyData else orderIpyData.GetOrderInfo()
             giftBag.OrderInfoLen = len(giftBag.OrderInfo)
             giftBag.BuyCountLimit = giftIpyData.GetBuyCountLimit()
-            giftBag.RMB = 0 if not orderIpyData else int(orderIpyData.GetPayRMBNum())
-            giftBag.RMBOriginal = giftIpyData.GetOriginalRMB()
+            giftBag.RMB = 0 if not orderIpyData else CommFunc.RMBToCoin(orderIpyData.GetPayRMBNum())
+            giftBag.RMBOriginal = CommFunc.RMBToCoin(giftIpyData.GetOriginalRMB())
             giftBag.ItemInfo = []
             for itemID, itemCount, isBind in __GetJobItemList(giftIpyData.GetGiftItemList(), curPlayer.GetJob()):
                 item = ChPyNetSendPack.tagMCFlashGiftbagItem()

--
Gitblit v1.8.0