| | |
| | | # "IP": curPlayer.GetIP(),
|
| | | # "Level": curPlayer.GetLV()})
|
| | | #=======================================================================
|
| | | OperatorID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
|
| | | OperatorID = GameWorld.GetPlayerPlatform(curPlayer)
|
| | | RegionName = GameWorld.GetPlayerServerSID(curPlayer)
|
| | |
|
| | | else:
|
| | |
| | |
|
| | | 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):
|
| | | '''
|