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/PlayerActTotalRecharge.py | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py index 5ea1147..e99d5fa 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py @@ -27,6 +27,7 @@ import ItemCommon import GameWorld import ChConfig +import CommFunc def GetTemplateID(cfgID, dayIndex, actNum): if cfgID == None or dayIndex == None: @@ -135,7 +136,7 @@ if awardRecord & pow(2, awardIndex): continue - needGold = ipyData.GetNeedGold() + needGold = CommFunc.RMBToCoin(ipyData.GetNeedGold()) if curRechargeGold < needGold: continue awardRecord |= pow(2, awardIndex) @@ -143,7 +144,7 @@ awardItemList = __GetItemList(ipyData.GetAwardItem(), job, playerWorldLV) batchPlayerIDList.append([playerID]) batchAddItemList.append(awardItemList) - batchParamList.append([needGold]) + batchParamList.append([str(ipyData.GetNeedGold())]) # 钱支持小数,显示参数传字符串 if batchPlayerIDList: PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TotalRechargeAwardRecord % actNum, awardRecord) @@ -236,7 +237,7 @@ GameWorld.DebugLog("找不到该返利活动档位索引奖励!actNum=%s,templateID=%s,awardIndex=%s" % (actNum, templateID, awardIndex), playerID) return - needGold = awardIpyData.GetNeedGold() + needGold = CommFunc.RMBToCoin(awardIpyData.GetNeedGold()) actWorldLV = actTotalRechargeInfo.get(ShareDefine.ActKey_WorldLV, 0) awardItemList = __GetItemList(ipyData.GetAwardItem(), curPlayer.GetJob(), actWorldLV) @@ -257,7 +258,7 @@ notifyKey = awardIpyData.GetNotifyKey() if notifyKey: - PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), needGold]) + PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), str(awardIpyData.GetNeedGold())]) # 钱支持小数,显示参数传字符串 for itemID, itemCount, _ in awardItemList: ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem]) @@ -320,7 +321,7 @@ for ipyData in ipyDataList: awardInfo = ChPyNetSendPack.tagMCTotalRechargeAward() awardInfo.AwardIndex = ipyData.GetAwardIndex() - awardInfo.NeedGold = ipyData.GetNeedGold() + awardInfo.NeedGold = CommFunc.RMBToCoin(ipyData.GetNeedGold()) awardInfo.AwardItem = [] awardItemList = __GetItemList(ipyData.GetAwardItem(), job, actWorldLV) for awardItemInfo in awardItemList: -- Gitblit v1.8.0