From f4ba71b4f1f541fbf705ec7ccee1e49d097cb57f Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 08 一月 2019 15:10:26 +0800 Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(登录、退出跨服流程优化) --- ServerPython/CoreServerGroup/GameServer/Script/EventReport.py | 50 ++++++++++++++++++++++++++------------------------ 1 files changed, 26 insertions(+), 24 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py b/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py index fcb35c6..7ff6764 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py @@ -105,7 +105,7 @@ # "IP": curPlayer.GetIP(), # "Level": curPlayer.GetLV()}) #======================================================================= - OperatorID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID()) + OperatorID = GameWorld.GetPlayerPlatform(curPlayer) RegionName = GameWorld.GetPlayerServerSID(curPlayer) else: @@ -127,7 +127,7 @@ # @param eventClass # @return None def WriteEvent(eventClass): - if GameWorld.IsMergeServer(): + if GameWorld.IsCrossServer(): return if eventClass.GetScribeEventName() not in ReadChConfig.GetEvalChConfig("EventReportID"): @@ -334,28 +334,30 @@ def WriteEvent_chat_log(curPlayer, content, cmc_name, tagName="", addinfo=""): return - ''' - @todo: 写聊天监控记录 - @param content: 聊天内容 - @param cmc_name: 聊天频道标识 - @param tagName: 私聊对象 - @param addinfo: 额外信息 - ''' - - chatlogEvent = chat_log() - chatlogEvent.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID())) - chatlogEvent.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID()) - chatlogEvent.chr_name = curPlayer.GetName() - chatlogEvent.content = __GetEventChatContent(content) - chatlogEvent.cmc_name = cmc_name - chatlogEvent.ip = curPlayer.GetIP() - chatlogEvent.account_name = chatlogEvent.account_id - chatlogEvent.account_type = 0 - chatlogEvent.chr_level = 0 - chatlogEvent.object = tagName - chatlogEvent.addinfo = addinfo - WriteEvent(chatlogEvent) - return + #=========================================================================== + # ''' + # @todo: 写聊天监控记录 + # @param content: 聊天内容 + # @param cmc_name: 聊天频道标识 + # @param tagName: 私聊对象 + # @param addinfo: 额外信息 + # ''' + # + # chatlogEvent = chat_log() + # chatlogEvent.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer)) + # chatlogEvent.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID()) + # chatlogEvent.chr_name = curPlayer.GetName() + # chatlogEvent.content = __GetEventChatContent(content) + # chatlogEvent.cmc_name = cmc_name + # chatlogEvent.ip = curPlayer.GetIP() + # chatlogEvent.account_name = chatlogEvent.account_id + # chatlogEvent.account_type = 0 + # chatlogEvent.chr_level = 0 + # chatlogEvent.object = tagName + # chatlogEvent.addinfo = addinfo + # WriteEvent(chatlogEvent) + # return + #=========================================================================== def __GetEventChatContent(content): ''' -- Gitblit v1.8.0