From f473d3c18a3aa6c4c0cd98f9396e488676424f4c Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期三, 27 二月 2019 16:04:08 +0800 Subject: [PATCH] 6282 【前端】【2.0】封魔之地的飞跃功能 --- ServerPython/CoreServerGroup/GameServer/Script/EventReport.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py b/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py index 7ff6764..f4f13c5 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py @@ -109,8 +109,12 @@ RegionName = GameWorld.GetPlayerServerSID(curPlayer) else: - # 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发,没有则取配置主服 - RegionName = 's%s'%GameWorld.GetPlayerMainServerID(OperatorID) + # 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发 + sid = GameWorld.GetPlayerMainServerID(OperatorID) + if not sid: + GameWorld.ErrLog("GetPlayerMainServerID: %s-%s"%(OperatorID, sid)) + return + RegionName = 's%s'%sid getUrl = "%s?ProductID=%s&OperatorID=%s&RegionName=%s&EventID=%s%s&Time=%s&%s"%(\ ReportUrl, ProductID, OperatorID, RegionName, eventActionID, playerInfo, -- Gitblit v1.8.0