From 10a2b69436a1ebb09fa49a339655e150bfda70a8 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 13 四月 2019 17:16:54 +0800
Subject: [PATCH] 6457 新增GM命令 AddFairyEvent 事件ID 事件ID。。

---
 ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
index fde64b6..4968286 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
@@ -303,14 +303,6 @@
     global GameWorldData
     return GameWorldData.GetBourseManager()
 
-## 竞技场管理器
-#  @param 
-#  @return HightLadderMgr
-#  @remarks 函数详细说明.
-def GetHightLadderMgr():
-    global GameWorldData
-    return GameWorldData.GetHighLadderManager()
-
 ## GM工具补偿管理器
 #  @param 
 #  @return HightLadderMgr
@@ -1024,4 +1016,17 @@
     except:
         return inputText
     
-    return inputText
\ No newline at end of file
+    return inputText
+
+
+# 向运维发送邮件,用于需要紧急处理的信息
+# 此处不包含服务器报错的汇报
+def SendGameStateMail(msgInfo):
+    # 使用方式 向OpenStateUrl 发送Type为GameWarning,那么就会收到一封游戏内容警告邮件,信息为MsgInfo
+    getUrl = ReadChConfig.GetPyMongoConfig("EventReport", "OpenStateUrl")
+    groupID = ReadChConfig.GetPyMongoConfig("platform", "GroupID")
+    userDBName = ReadChConfig.GetPyMongoConfig("connect", "USER_DB_NAME")
+    getUrl = getUrl + "?Type=GameWarning&groupID=%s&userDBName=%s&MsgInfo=%s"%(groupID, userDBName, msgInfo)
+    
+    GetGameWorld().EventReport_EventReport("", "", "", "", 0, getUrl)
+    
\ No newline at end of file

--
Gitblit v1.8.0