From 367d5e0a2998c414e58a139e35bf44c206b5da1e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 25 十二月 2025 10:51:44 +0800
Subject: [PATCH] 165 【挑战】天子的考验-服务端(每日重置榜单)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
index 3406937..7b5e86e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
@@ -119,9 +119,9 @@
# @param eventTypeStr: 事件类型标识
# @param dataDict: 事件字典
# @return None
-def SendEventPack(eventTypeStr, dataDict, curPlayer=None):
+def SendEventPack(eventTypeStr, dataDict, curPlayer=None, checkBatServer=True):
- if GameWorld.IsBattleServer():
+ if checkBatServer and GameWorld.IsBattleServer():
GameWorld.DebugLogEx("战斗服务器暂不做流向记录")
return
@@ -273,8 +273,9 @@
def DR_MainLevelPass(curPlayer, lvID):
## 主线关卡过关
+ treeLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TreeLV)
dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(), 'lvID':lvID}
+ 'AccID':curPlayer.GetAccID(), 'lvID':lvID, 'treeLV':treeLV}
SendEventPack("MainLevelPass", dataDict, curPlayer)
return
@@ -286,6 +287,19 @@
SendEventPack("FBPass_%s" % mapID, dataDict, curPlayer)
return
+def DR_FightStat(reqPlayerID, mapID, funcLineID, isWin, turnNum, turnMax, heroCount, costTime, statInfo, drLineupInfo):
+ ## 战斗统计
+ dataDict = {'PlayerID':reqPlayerID, 'mapID':mapID, 'funcLineID':funcLineID, 'isWin':isWin,
+ 'turnNum':turnNum, 'turnMax':turnMax, 'heroCount':heroCount, 'costTime':costTime}
+ SendEventPack("FightTime", dataDict, checkBatServer=False)
+
+ #战斗失败的记录明细信息
+ if not isWin:
+ failDRDict = {"statInfo":statInfo, "drLineupInfo":drLineupInfo}
+ failDRDict.update(dataDict)
+ SendEventPack("FightFail_%s" % mapID, failDRDict, checkBatServer=False)
+ return
+
##累计登陆礼包
def DR_LoginDayAward(curPlayer, dayIndex):
dataDict = {'PlayerID':curPlayer.GetPlayerID(),
--
Gitblit v1.8.0