From 01e033a79a5ce63e298015d0783560a77ccffea9 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 14 九月 2018 11:46:46 +0800
Subject: [PATCH] fix:3543 【后端】【主干】【1.0.15】开服红包优化 每天赠送次数

---
 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 2f9e7f2..fcb35c6 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/EventReport.py
@@ -93,7 +93,6 @@
 
     ProductID = ReadChConfig.GetPyMongoConfig("EventReport", "ProductID")
     ReportUrl = ReadChConfig.GetPyMongoConfig("EventReport", "ReportUrl")
-    RegionName = GameWorld.GetServerSID() # 需考虑合服情况
     
     playerInfo = ""
     if curPlayer:
@@ -107,7 +106,12 @@
         #                  "Level": curPlayer.GetLV()}) 
         #=======================================================================
         OperatorID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
-    
+        RegionName = GameWorld.GetPlayerServerSID(curPlayer)
+        
+    else:
+        # 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发,没有则取配置主服
+        RegionName = 's%s'%GameWorld.GetPlayerMainServerID(OperatorID) 
+        
     getUrl = "%s?ProductID=%s&OperatorID=%s&RegionName=%s&EventID=%s%s&Time=%s&%s"%(\
              ReportUrl, ProductID, OperatorID, RegionName, eventActionID, playerInfo,
              str(datetime.datetime.today()).split('.')[0], eventParam)

--
Gitblit v1.8.0