|  |  |  | 
|---|
|  |  |  | #  @param option: 配置项名 | 
|---|
|  |  |  | #  @return | 
|---|
|  |  |  | #  @remarks \db\PyMongoDataServer\PyMongoDataServer.ini配置读取 | 
|---|
|  |  |  | def GetPyMongoConfig(section, option): | 
|---|
|  |  |  | def GetPyMongoConfig(section, option, raw=False): | 
|---|
|  |  |  | global PyMongoDataServerConfig | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if not PyMongoDataServerConfig: | 
|---|
|  |  |  | 
|---|
|  |  |  | 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) | 
|---|
|  |  |  | 
|---|
|  |  |  | ClearAllConfig() | 
|---|
|  |  |  | GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_ReloadConfig, 1) | 
|---|
|  |  |  | IpyGameDataPY.IPYData.IpyDataClear() | 
|---|
|  |  |  | import GameWorldProcess | 
|---|
|  |  |  | GameWorldProcess.OnReloadConfig() | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|