hwj35
2025-06-23 aa0f971ae9a59f0fd98d57b6c1d1663a270be92c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cc@sdZddlZddlZddlZddlZddlZddlZddlZddlZia    ia
da ia idd6Zd„Zd„Zed„Zd„Zd    „Zd
„Zeded „Zd „Zd „Zed„Zd„ZdS(sVersion = 2017-07-03 20:00iÿÿÿÿNs\Config\DBPlatformNum.txtt DBPlatformNumcCs
t|ƒS(N(t__DoLogic_GetConfig(tkey((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyt GetChConfig8scCs t|tƒS(N(RtTrue(R((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pytGetEvalChConfig@scCs’tjƒjtjƒr"tƒntj|ƒr9t|StsIt    ƒnt
||ƒtj|ƒrmt|Stj d|ƒt d|ƒ‚dS(NsÎÞ·¨»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s, Å׳ö( t    GameWorldt GetGameWorldtGetGameWorldDictByKeyt ShareDefinet Def_Notify_WorldKey_ReloadConfigtClearAllConfigt AllChConfigthas_keytGeneralProgrammetReadConfigData_GeneralProgrammetReadConfigDatatLogt    Exception(RtneedEval((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyRHs
 
 cCsViaiatjƒdaiatjƒt    j
dƒt    j ƒj t jdƒdS(NtMapServer_Reload_ChConfigi(R RtFormulaControltClearCompileFormulaDisttNonetPyMongoDataServerConfigt DBAllChConfigt    MapConfigt ClearConfigRRRtSetGameWorldDictR    R
(((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyR is
 
 cCs_tj|ƒ}|s9tjd|ƒtd|ƒ‚ntjƒddd|d}tjj    |ƒs©tjd||d|fƒtd||d|fƒ‚nt
|dƒ}|j ƒ}|j ƒ|r;yt |ƒ}Wn=tk
r#}tjd|||fƒtd    |ƒ‚nXtji||6ƒn tjit|d
d ƒ|6ƒdS( Ns×ܸÙÖÐδ·¢ÏÖ¹¦ÄÜÃû = %ss\tMapServerConfigs%s.txtisδ·¢ÏÖÄ¿±êÎļþ = %s,%s,%strs5»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s¶Áȡʧ°Ü,ÎÞ·¨½âÎöÔ­Òò:%s, Å׳ö,%ss»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s¶Áȡʧ°Üt ReadChConfigteval(RtgetRRRtChConfigt
GetAppPathtostpathtisfiletopentreadtcloseR t BaseExceptionR tupdatetcompile(tfileNameRt curFileListtcurPathtfiletstrMsgtresultte((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyRƒs(   
 cCsètjƒdd}tjj|ƒsJtjd|ƒtd|ƒ‚nt|dƒ}g|j    ƒD]}|j
dƒd ^qf}|j ƒ|sªtjd|ƒdS|j dƒx*|D]"}t ji|d    |d6ƒq¾WdS(
Ns\s$MapServerConfig\GeneralProgramme.txtsÎÞ·¨·¢ÏÖ×ܸ٠= %sRs    is###×ܸÙΪ¿Õ = %sii(R"R#R$R%R&RRRR't    readlinestsplitR)tpopRR+(R/R0tlinetdatetdateList((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyR·s,
   cCsÞtstjƒd}tjj|ƒsLtjd|ƒtd|ƒ‚nt    j    ƒatj
|ƒtj dt |ƒƒntj ||ƒsÅ|dkr¡|S|rÁtjd||fƒndStj|||ƒ}|S(Ns\PyMongoDataServer.inisÎÞ·¨ÕÒµ½Îļþ = %ssReload dbAPPath=%ss5PyMongoDataServer.iniÕÒ²»µ½ÅäÖÃ: section=%s,option=%st(RR"t    GetDBPathR$R%R&RRRt ConfigParserR(tDebugLogtstrt
has_optionRtErrLogR!(tsectiontoptiontrawt defaultValuetisLogtdbAPPathtstrParam((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pytGetPyMongoConfigÛs    cCs
t|ƒS(N(t__DoLogic_GetDBConfig(R((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyt GetDBConfigóscCs t|tƒS(N(RIR(R((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pytGetDBEvalChConfigôscCs¢tjƒjtjƒr"tƒntj|ƒr9t|S|tkrZtj    d|ƒdSt
j ƒt|}t |||ƒ}|sŠdStj i||6ƒ|S(NsDBÅäÖÃÖÐδ·¢ÏÖKeyÎļþ = %s(RRRR    R
R RR tDef_DBCfgFilePathRR"R;t__ReadConfigDataExR+(RRtfilePathtretData((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyRIús
 cCsÉtjj|ƒs6tjd|ƒtd|ƒ‚nt|dƒ}|jƒ}|jƒ|rµyt    |ƒ}Wn=t
k
r°}tjd|||fƒtd|ƒ‚nX|St |ddƒSdS(Nsδ·¢ÏÖÄ¿±êÎļþ = %sRs6»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s ¶Áȡʧ°Ü,ÎÞ·¨½âÎöÔ­Òò:%s, Å׳ö,%ss»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s ¶Áȡʧ°ÜRR ( R$R%R&RRRR'R(R)R R*R,(R-RNRR0R1R2R3((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyRMs 
(t__doc__R"R$Rtmd5RR<R    RR RRRRRLRRtFalseRR RRRRHRJRKRIRM(((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyt<module>s2        
         !        4    $