From b29c07351d8c6be81f3ba2dd28aeffef3c96257f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 07 四月 2021 18:35:41 +0800
Subject: [PATCH] 8886 【BT2】【后端】线下活动支持(增加单笔累充系统)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActSingleRecharge.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActSingleRecharge.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActSingleRecharge.py
index c0de09e..70040ed 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActSingleRecharge.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActSingleRecharge.py
@@ -25,6 +25,7 @@
 import NetPackCommon
 import GameWorld
 import ChConfig
+import CommFunc
 
 def GetTemplateID(cfgID, dayIndex):
     if not cfgID or dayIndex == None:
@@ -126,7 +127,7 @@
             continue
         
         singleValue = ipyData.GetSingleRechargeValue()
-        if curRechargeValue < singleValue:
+        if curRechargeValue < CommFunc.RMBToCoin(singleValue):
             continue
         awardRecord |= pow(2, awardIndex) 
         
@@ -226,7 +227,7 @@
         GameWorld.DebugLog("找不到该单笔累充活动档位索引奖励!actNum=%s,templateID=%s,awardIndex=%s" % (actNum, templateID, awardIndex), playerID)
         return
     
-    singleValue = awardIpyData.GetSingleRechargeValue()
+    singleValue = CommFunc.RMBToCoin(awardIpyData.GetSingleRechargeValue())
     curRechargeValue = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_SingleRechargeValue % actNum)
     
     if curRechargeValue < singleValue:
@@ -249,7 +250,7 @@
     
     notifyKey = awardIpyData.GetNotifyKey()
     if notifyKey:
-        PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), singleValue])
+        PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), awardIpyData.GetSingleRechargeValue()])
         
     for itemID, itemCount, isAuctionItem in awardItemList:
         ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isAuctionItem, [IPY_GameWorld.rptItem], event=["SingleRechargeAward", False, {}])
@@ -321,7 +322,7 @@
         for awardIpyData in ipyDataList:
             awardInfo = ChPyNetSendPack.tagMCActSingleRechargeAward()
             awardInfo.AwardIndex = awardIpyData.GetAwardIndex()
-            awardInfo.SingleRechargeValue = awardIpyData.GetSingleRechargeValue()
+            awardInfo.SingleRechargeValue = CommFunc.RMBToCoin(awardIpyData.GetSingleRechargeValue())
             awardInfo.AwardItem = []
             awardItemList = GameWorld.GetDictValueByRangeKey(awardIpyData.GetAwardItem(), actWorldLV, [])
             for itemID, itemCount, isBind in awardItemList:

--
Gitblit v1.8.0