hxp
2025-12-20 c32f8d566f4dd0800a2836058aef06b6461df668
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
31
32
æ!=ic@s
dZddlZddlZddlZddlZddlZddlZddlZddlZia    ia
da ia idd6Zd„Zd„Zed„Zd„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((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyt GetChConfig8scCs t|tƒS(N(RtTrue(R((sdD:\SG_ServerCode\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((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyRHs
 
 cCs7tjdƒtjƒjtjdƒtjjƒdS(Ns=== ÉèÖÃÖØ¶ÁÅäÖà===i(    RRRtSetGameWorldDictR    R
t IpyGameDataPYtIPYDatat IpyDataClear(((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pytSetReloadConfiges  cCsLiaiatjƒdaiatjdƒtj    ƒj
t j dƒdS(NtMapServer_Reload_ChConfigi( R RtFormulaControltClearCompileFormulaDisttNonetPyMongoDataServerConfigt DBAllChConfigRRRRR    R
(((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyR os
 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((sdD:\SG_ServerCode\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ÎÞ·¨·¢ÏÖ×ܸ٠= %sR s    is###×ܸÙΪ¿Õ = %sii(R$R%R&R'R(RRRR)t    readlinestsplitR+tpopRR-(R1R2tlinetdatetdateList((sdD:\SG_ServerCode\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$tGetServerConfigPathR&R'R(RRRt ConfigParserR*tDebugLogtstrt
has_optionRtErrLogR#(tsectiontoptiontrawt defaultValuetisLogtdbAPPathtstrParam((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pytGetPyMongoConfigßs    cCs
t|ƒS(N(t__DoLogic_GetDBConfig(R((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyt GetDBConfig÷scCs t|tƒS(N(RKR(R((sdD:\SG_ServerCode\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((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyRKþs
 cCsÉtjj|ƒs6tjd|ƒtd|ƒ‚nt|dƒ}|jƒ}|jƒ|rµyt    |ƒ}Wn=t
k
r°}tjd|||fƒtd|ƒ‚nX|St |ddƒSdS(Nsδ·¢ÏÖÄ¿±êÎļþ = %sR s6»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s ¶Áȡʧ°Ü,ÎÞ·¨½âÎöÔ­Òò:%s, Å׳ö,%ss»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s ¶Áȡʧ°ÜR!R"( R&R'R(RRRR)R*R+R"R,R.(R/RPRR2R3R4R5((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyROs 
(t__doc__R$R&Rtmd5RRR>R    R RRRRRNRRtFalseRRR RRRRJRLRMRKRO(((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyt<module>s4        
             
        4    $