From 021437fc736fafdb8608933ebe095b93cfb9b8ed Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 11 七月 2024 19:31:05 +0800 Subject: [PATCH] 10192 【越南】【主干】【港台】【砍树】上线增加膜拜主动推送(修改为可膜拜自己;) --- ServerPython/CoreServerGroup/GameServer/Script/ReadChConfig.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ReadChConfig.py b/ServerPython/CoreServerGroup/GameServer/Script/ReadChConfig.py index 8d0621f..8311de4 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ReadChConfig.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ReadChConfig.py @@ -215,7 +215,7 @@ # @param option: 配置项名 # @return # @remarks \db\PyMongoDataServer\PyMongoDataServer.ini配置读取 -def GetPyMongoConfig(section, option): +def GetPyMongoConfig(section, option, raw=False): global PyMongoDataServerConfig if not PyMongoDataServerConfig: @@ -233,7 +233,7 @@ GameWorld.ErrLog("PyMongoDataServer.ini找不到配置: section=%s,option=%s" % (section, option)) return "" - strParam = PyMongoDataServerConfig.get(section, option) + strParam = PyMongoDataServerConfig.get(section, option, raw) return strParam def GetDBConfig(key): return __DoLogic_GetDBConfig(key) @@ -295,6 +295,8 @@ ClearAllConfig() GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_ReloadConfig, 1) IpyGameDataPY.IPYData.IpyDataClear() + import GameWorldProcess + GameWorldProcess.OnReloadConfig() return -- Gitblit v1.8.0