From 472087055ef450ed96420ea933bc8158291d8fde Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 06 二月 2025 14:30:27 +0800
Subject: [PATCH] 10352 【BT】免费买断版本(优化累充每日奖励单日内可再次领取满足条件的更高档奖励)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index 21e13d7..87e7de6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -5781,7 +5781,7 @@
 def OnGetRechargeDayAward(curPlayer, rewardType):
     ## 领取累充每日奖励,取最高档
     realTotal = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CTGRealTotal)
-    awardCoin = 0
+    awardCoinRecord = awardCoin = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_RechargeDayAward) # 已领奖档位值
     awardItemList = []
     dayAwardDict = IpyGameDataPY.GetFuncEvalCfg("RechargeDayAward", 1, {})
     for needCoinStr, itemList in dayAwardDict.items():
@@ -5789,10 +5789,13 @@
         if realTotal >= needCoin and needCoin > awardCoin:
             awardCoin = needCoin
             awardItemList = itemList
-    GameWorld.DebugLog("领取累充每日最高档奖励: realTotal=%s,awardCoin=%s,%s" % (realTotal, awardCoin, awardItemList), curPlayer.GetPlayerID())
+    GameWorld.DebugLog("领取累充每日最高档奖励: awardCoinRecord=%s,realTotal=%s,awardCoin=%s,%s" % (awardCoinRecord, realTotal, awardCoin, awardItemList), curPlayer.GetPlayerID())
     if not awardItemList:
         return
-    OnGiveAwardByClient(curPlayer, rewardType, ChConfig.Def_PDict_RechargeDayAward, awardItemList, "RechargeDayAward")
+    if not ItemCommon.GiveAwardItem(curPlayer, awardItemList, "RechargeDayAward"):
+        return
+    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RechargeDayAward, awardCoin)
+    Sync_RewardGetRecordInfo(curPlayer, rewardType, awardCoin)
     return
 
 ## 领取创角奖励

--
Gitblit v1.8.0