From 11692fc9b47b4fc2dd079a2e019d980ff67d1003 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 17 三月 2026 19:57:53 +0800
Subject: [PATCH] 541 【幻境阁】新增称号加成效果-服务端(废弃红颜额外返还字段,统一使用称号额外返还;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_CheckOpenServer.py | 27 ++++++++++++++++-----------
1 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_CheckOpenServer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_CheckOpenServer.py
index 04906e0..90c04a6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_CheckOpenServer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_CheckOpenServer.py
@@ -2,32 +2,37 @@
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
-##@package PyMongoDataServer.GMToolLogicProcess.Commands.GMT_CheckOpenServer
+##@package PyMongoDB.GMToolLogicProcess.Commands.GMT_CheckOpenServer
#
# @todo:检查开服相关是否正常
# @author hxp
-# @date 2024-10-23
+# @date 2026-03-16
# @version 1.0
#
# 详细描述: 检查开服相关是否正常
#
#-------------------------------------------------------------------------------
-#"""Version = 2024-10-23 15:00"""
+#"""Version = 2026-03-16 20:00"""
#-------------------------------------------------------------------------------
import GMCommon
+import ShareDefine
+import GameWorld
+import DBDataMgr
-## 收到gm命令执行
-# @param gmCmdDict:gm命令字典
-# @return None
def OnExec(gmCmdDict):
- from LogicProcess import (UserCtrlDB,)
+ from LogicProcess import (UserCtrlDB)
# 先检查版本号
checkRet = UserCtrlDB.CheckGameVersion()
curVersion, centerVersion = checkRet if checkRet else ("", "")
- if curVersion == centerVersion:
- # 推给GameServer进一步检查
- return GMCommon.Def_SendToGameServer, ''
- return GMCommon.Def_Unknow, {"errMsg":"VersionError", "curVersion":curVersion, "centerVersion":centerVersion}
+ if curVersion != centerVersion:
+ return GMCommon.Def_Unknow, {"errMsg":"VersionError", "curVersion":curVersion, "centerVersion":centerVersion}
+
+ openServerDay = DBDataMgr.GetEventTrigMgr().GetValue(ShareDefine.Def_ServerDay) + 1
+ if openServerDay != 1:
+ GameWorld.SendGameError("GMT_CheckOpenServer", "开服天异常:%s" % openServerDay)
+ return GMCommon.Def_Unknow, {"errMsg":"OpenServerDayError", "openServerDay":openServerDay}
+
+ return GMCommon.Def_Success, {"errMsg":"OK"}
--
Gitblit v1.8.0