From 2929ce545f63fa40aa5ac93e7c030682568f00be Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 12 三月 2021 16:13:01 +0800
Subject: [PATCH] 8835 【BT2】【主干】【后端】Part3-2 5)新增多日连充(主干补冲突;钱单位修改为分)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActManyDayRecharge.py |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActManyDayRecharge.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActManyDayRecharge.py
index ad66ef8..549bd8f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActManyDayRecharge.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActManyDayRecharge.py
@@ -26,6 +26,7 @@
 import NetPackCommon
 import GameWorld
 import ChConfig
+import CommFunc
 
 Max_ActDays = 7 # 支持最大活动持续天
 
@@ -121,7 +122,7 @@
         if awardRecord & pow(2, awardIndex):
             continue
         
-        needRechargeValue = ipyData.GetNeedRecharge()
+        needRechargeValue = CommFunc.RMBToCoin(ipyData.GetNeedRMB())
         needDays = ipyData.GetNeedDays()
         finishDays = 0
         for dayIndex in xrange(Max_ActDays):
@@ -137,7 +138,7 @@
         
         batchPlayerIDList.append([playerID])
         batchAddItemList.append(awardItemList)
-        batchParamList.append([needDays, needRechargeValue])
+        batchParamList.append([needDays, str(ipyData.GetNeedRMB())])
         GameWorld.Log("多日连充活动补发奖励! actNum=%s,playerTemplateID=%s,awardIndex=%s" % (actNum, playerTemplateID, awardIndex))
         
     if batchPlayerIDList:
@@ -205,7 +206,7 @@
         GameWorld.DebugLog("找不到该多日连充活动档位索引奖励!actNum=%s,templateID=%s,awardIndex=%s" % (actNum, templateID, awardIndex), playerID)
         return
     
-    needRechargeValue = awardIpyData.GetNeedRecharge()
+    needRechargeValue = CommFunc.RMBToCoin(awardIpyData.GetNeedRMB())
     needDays = awardIpyData.GetNeedDays()
     
     dayRechargeValueDict = {}
@@ -237,7 +238,7 @@
     GameWorld.DebugLog("    领取成功! actNum=%s,templateID=%s,awardIndex=%s,needRechargeValue=%s,needDays=%s %s" 
                        % (actNum, templateID, awardIndex, needRechargeValue, needDays, dayRechargeValueDict))
     if notifyKey:
-        PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), needDays, needRechargeValue])
+        PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), needDays, str(awardIpyData.GetNeedRMB())])
         
     for itemID, itemCount, isAuctionItem in awardItemList:
         ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isAuctionItem, [IPY_GameWorld.rptItem])
@@ -290,7 +291,7 @@
         for awardIpyData in ipyDataList:
             awardInfo = ChPyNetSendPack.tagMCActManyDayRechargeAward()
             awardInfo.AwardIndex = awardIpyData.GetAwardIndex()
-            awardInfo.NeedRecharge = awardIpyData.GetNeedRecharge()
+            awardInfo.NeedRecharge = CommFunc.RMBToCoin(awardIpyData.GetNeedRMB())
             awardInfo.NeedDays = awardIpyData.GetNeedDays()
             awardInfo.AwardItemList = []
             awardItemList = GameWorld.GetDictValueByRangeKey(awardIpyData.GetAwardItemInfo(), actWorldLV, [])

--
Gitblit v1.8.0