From bb6cd0bde854e5998022a0bce4fdc8bf554be3a6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 19 七月 2024 14:03:00 +0800
Subject: [PATCH] 5541 【越南】批量使用宝箱获得道具超过65535

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActBossTrial.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActBossTrial.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActBossTrial.py
index 0480bd5..d79e287 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActBossTrial.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActBossTrial.py
@@ -65,7 +65,9 @@
 
 def __OnEndAward(actNum, ipyData, dayIndex):
     ## 结算奖励
-    cfgID = ipyData.GetCfgID() if ipyData else 0
+    if not ipyData:
+        return
+    cfgID = ipyData.GetCfgID()
     awardState = PlayerDBGSEvent.GetDBGSTrig_ByKey(PlayerDBGSEvent.Def_ActBossTrialAward % actNum)
     if awardState:
         #已经结算过该活动
@@ -493,6 +495,7 @@
     
     # 结算时排序并保存榜单数据流向
     billboardObj.SortData()
+    billboardObj.SaveDRData()
     
     GameWorld.Log("结算跨服Boss凭证个人排行奖励: billboardType=%s,zoneID=%s,cfgID=%s,templateID=%s,billboardDataCount=%s" 
                   % (billboardType, zoneID, cfgID, templateID, billboardDataCount))
@@ -540,6 +543,7 @@
     
     # 结算时排序并保存榜单数据流向
     billboardObj.SortData()
+    billboardObj.SaveDRData()
     
     GameWorld.Log("结算跨服Boss凭证仙盟排行奖励: billboardType=%s,zoneID=%s,cfgID=%s,templateID=%s,billboardDataCount=%s" 
                   % (billboardType, zoneID, cfgID, templateID, billboardDataCount))

--
Gitblit v1.8.0