From 6147d46800b735eedf348f7b7b80038b1a5efe7c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 13 三月 2026 17:51:16 +0800
Subject: [PATCH] 16 卡牌服务端(增加广告领奖流向记录;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py  |    7 +++++++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
index 7365f9b..2fad996 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
@@ -263,6 +263,13 @@
     SendEventPack("FixVersion_%s" % fixName, dataDict, curPlayer)
     return
 
+def DR_ADAward(curPlayer, adID):
+    ## 广告奖励流向
+    dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(), 
+                'AccID':curPlayer.GetAccID(), 'ADID':adID}
+    SendEventPack("ADAward", dataDict)
+    return
+
 ## 玩家升级
 #  @param curPlayer: 玩家实例
 #  @param playerLV: 玩家等级
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 b604704..f577fe2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -3261,6 +3261,8 @@
     # 游历体力
     elif adAwardType == 4:
         PlayerTravel.AddTravelEnergy(curPlayer, adAwardValue)
+        
+    DataRecordPack.DR_ADAward(curPlayer, adID)
     return
 
 def ADCntOnDay(curPlayer):

--
Gitblit v1.8.0