From 3eca15f9797612ea59ccc830c9f9deef13d85e46 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期三, 19 六月 2019 16:05:19 +0800 Subject: [PATCH] 7385 【2.0】【后端】超值礼包修改(报错修复) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py index 5e20d9a..ec2fdd2 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py @@ -19,7 +19,6 @@ # @change: "2012-11-30 19:00" wdb 修改重读配置 # @change: "2013-06-27 14:30" wdb 修改eval后加入缓存 # @change: "2014-12-28 21:00" hxp PyMongoDataServer.ini配置读取 -# @change: "2015-08-19 13:50" xdh 支持重读pyMapTable # @change: "2017-07-03 20:00" hxp DB路径下配置文件读取支持 #--------------------------------------------------------------------- """Version = 2017-07-03 20:00""" @@ -32,7 +31,6 @@ import ConfigParser import ShareDefine import MapConfig -import PyMapTable #--------------------------------------------------------------------- #全局变量 #--------------------------------------------------------------------- @@ -119,7 +117,6 @@ MapConfig.ClearConfig() - PyMapTable.ClearPyMapTable() GameWorld.Log('MapServer_Reload_ChConfig') #关闭字典 GameWorld.GetGameWorld().SetGameWorldDict(ShareDefine.Def_Notify_WorldKey_ReloadConfig , 0) @@ -219,7 +216,7 @@ # @param option: 配置项名 # @return # @remarks \db\PyMongoDataServer\PyMongoDataServer.ini配置读取 -def GetPyMongoConfig(section, option): +def GetPyMongoConfig(section, option, raw=False): global PyMongoDataServerConfig if not PyMongoDataServerConfig: @@ -237,7 +234,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) -- Gitblit v1.8.0