From acebf38b40565a700efeecddb2e3f6e2b2e183a6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 13 十二月 2025 16:28:44 +0800
Subject: [PATCH] 389 流向记录(增加GM工具命令:重读配置 GMT_ReloadConfig)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py | 7 +++++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_ReloadConfig.py | 26 ++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_ReloadConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_ReloadConfig.py
new file mode 100644
index 0000000..51ef60a
--- /dev/null
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_ReloadConfig.py
@@ -0,0 +1,26 @@
+#!/usr/bin/python
+# -*- coding: GBK -*-
+#-------------------------------------------------------------------------------
+#
+##@package PyMongoDB.GMToolLogicProcess.Commands.GMT_ReloadConfig
+#
+# @todo:GM工具命令 - 重读配置
+# @author hxp
+# @date 2025-12-13
+# @version 1.0
+#
+# 详细描述: GM工具命令 - 重读配置
+#
+#-------------------------------------------------------------------------------
+#"""Version = 2025-12-13 17:00"""
+#-------------------------------------------------------------------------------
+
+import GMCommon
+import ReadChConfig
+
+## 收到gm命令执行
+# @param gmCmdDict:gm命令字典
+# @return None
+def OnExec(gmCmdDict):
+ ReadChConfig.SetReloadConfig()
+ return GMCommon.Def_Success
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py
index 15dea17..b396ced 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py
@@ -27,6 +27,7 @@
import os
import GameWorld
import md5
+import IpyGameDataPY
import FormulaControl
import ConfigParser
import ShareDefine
@@ -97,6 +98,12 @@
return
+def SetReloadConfig():
+ ## 标记重读配置
+ GameWorld.Log("=== 设置重读配置 ===")
+ GameWorld.GetGameWorld().SetGameWorldDict(ShareDefine.Def_Notify_WorldKey_ReloadConfig, 1)
+ IpyGameDataPY.IPYData.IpyDataClear()
+ return
## 重读,清除配置
# @param key 表名
--
Gitblit v1.8.0