From 0494d4903383737139445b11e525a9e2ca583801 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 21 二月 2019 16:47:35 +0800
Subject: [PATCH] 6268 【后端】【1.6.100】增加道具七日巡礼积分和节日巡礼积分支持

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 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 4ea498a..94cbd1c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py
@@ -138,6 +138,7 @@
     itemInfoDict = GameWorld.GetDictValueByRangeKey(itemDict, worldLV, {})
     if str(job) not in itemInfoDict:
         GameWorld.ErrLog('累计充值奖励未配置该职业itemDict=%s,job=%s'%(itemDict, job))
+        return []
     else:
         return itemInfoDict[str(job)]
     
@@ -261,6 +262,7 @@
     if not templateIDList:
         return
     job = curPlayer.GetJob()
+    actWorldLV = actTotalRechargeInfo.get(ShareDefine.ActKey_WorldLV, 0)
     openServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1
     actInfo = ChPyNetSendPack.tagMCActTotalRechargeInfo()
     actInfo.StartDate = GameWorld.GetOperationActionDateStr(ipyData.GetStartDate(), openServerDay)
@@ -280,8 +282,8 @@
             awardInfo.AwardIndex = ipyData.GetAwardIndex()
             awardInfo.NeedGold = ipyData.GetNeedGold()
             awardInfo.AwardItem = []
-            awardItemDict = ipyData.GetAwardItem()
-            for itemID, itemCount, isBind in awardItemDict.get(str(job), []):
+            awardItemList = __GetItemList(ipyData.GetAwardItem(), job, actWorldLV)
+            for itemID, itemCount, isBind in awardItemList:
                 awardItem = ChPyNetSendPack.tagMCTotalRechargeAwardItem()
                 awardItem.ItemID = itemID
                 awardItem.ItemCount = itemCount

--
Gitblit v1.8.0