gwj
2026-01-13 afd80098563593477fc6f27165f4f4c915520403
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
33
34
35
36
37
38
39
40
41
42
43
íLic@sZddlTddlmZmZddlmZddlZddlZddlZddlZddl    Z    ddl
m Z ddl m Z ddlTddlmZmZddlmZmZdd    lmZd
„Zed ƒdad „Zd „Zddd„ƒYZddd„ƒYZd„Zd„Zd„Z ddd„Z!d„Z"dS(iÿÿÿÿ(t*(tGlobalFunctionst CommonDefine(tGMCommonN(tfix_incomingText(tDataServerPlayerData(t
CommFuncExtmylog(t
MMORPGPacktRecvPackProtocol(t ServersConfigc    Csôtjƒ}xátjd||fƒD]Æ\}}}x´|D]¬}tjj||ƒ}|j|dƒ}|dt|ƒ!}|jdƒdkr—q<n|j    dƒ}|d}|d}|d
krÌq<n|jd    dƒ}t
|ƒq<Wq&WdS( Ns%s\%stit__init__is.tpyctpys\(R R( Rt
getAppPathtostwalktpathtjointreplacetlentfindtsplitt
__import__(    t    importDirtcurPathtroottdirstfilestfiletfileNamet curFileListtext((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pytImportCommandAll4s ) 
 
 sGMToolLogicProcess\Commandsc Cs¥tjdƒ|j}|j}|j}|j}|j}|j}|j}tjd||fƒd}    yÜt    |ƒ}
|
j
t j dƒ}    |    dkr§t|ƒdSt|
ƒ} | ikrÖt||
t jƒdStƒ} | | _|    | _|| _|| _tj|ƒ| _|
| _|| _tƒj|| ƒ| jƒWnLtk
r“tjdt j!ƒƒtƒj"|ƒt||    t j#ƒdSXtjdƒdS(Ns%ProjSpecialProcess OnGMToolCommand INsGM Tool Cmd->%s,orderId->%sR sGM cmd error - > %ss'ProjSpecialProcess OnGMToolCommand Done($RtinfotOrderLentOrderIdtCmdLentCmdt UserDataLentUserDatat
ServerListtevaltgetRtDef_GMKey_TypetNonetSendGMToolCommandToGameServertChangeEncodIngtGMCommandResulttDef_EncodeFailt GMCmdMangert    gmCmdDicttfuncNametorderIdtuserDatatcopytdeepcopytpacktgmCmdDictUnEncodetserverIDt GetGMOrderMgrtAddCmdt GMToolCommandt BaseExceptiont    tracebackt
format_exctPopCmdtDef_GMDBEntranceFail( R:trecvPacktorderLenR6tcmdLentcmdt
uerDataLenR7t
serverListR5R4tcmdDictt gmCmdManger((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pytOnGMToolCommandQsJ                               
                                cCs|S(N((R:((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pytOnGMToolCommandResults    R3cBs,eZd„Zd„Zd„Zd„ZRS(cCs|jƒdS(N(tClear(tself((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyR ¦s
cCsCi|_d|_d|_d|_d|_i|_d|_dS(NR i(R4R5R6R.R7R:R;RJ(RP((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyRO®s                            cCsttd|jdfƒ}tj}d}|dkrU||j|jƒ\}}n|j||ƒ|jdkrt    j
t j ƒ}t jd|ƒ|rtjƒ}|j|jjƒƒt|jƒƒ|_t|jƒ|_|jj|jƒƒt|jƒqndS(Ns%s.%stOnExecR tGMT_ReloadConfigsserverIDMapDict:%s(RR(t GetExecFunctCommandsR5RtDef_SendToGameServerR.R4RJtGMCmdExecuteResultR
tGetServerDictByTheGroupNammeRtserverType_BattleRR#R    t tagGMCommandtReadDataR:t    getBuffertstrtkeysR*Rt    ServerLent    setBuffert    GetBufferR/(RPtcallFunctexecTypetexecInfotserverIDMapDictRE((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyR?»s"      cCsb|tjkr2t|jƒtƒj|jƒn,tƒj|jƒt|j|j||ƒdS(N(    RRUR/R:R=RCR6R1R5(RPRbRc((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyRVÝs  (t__name__t
__module__R ROR?RV(((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyR3¡s             "t GMCmdOrderMgrcBs,eZd„Zd„Zd„Zd„ZRS(cCs i|_dS(N(t_GMCmdOrderMgr__CmdOrderdict(RP((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyR òs    cCsD||jjƒkr3tjd||jfƒtS||j|<tS(Ns(orderId = %s already exists,New cmd = %d(RhR]RtwarningR5tFalsetTrue(RPR6t    cmdManger((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyR>ûs
 cCs|jj|dƒS(N(RhtpopR.(RPR6((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyRCscCs|jj|dƒS(N(RhR,R.(RPR6((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pytGetCmds(ReRfR R>RCRn(((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyRgís                 cCstdkrtStƒatS(N(t_GMCmdOrderMgrR.Rg(((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyR=s     cCsb|jdƒ}t|ƒdkr%dSx6|D].}t||ƒtkrKdSt||ƒ}q,W|S(Ns.i(RRR.thasattrRktgetattr(t
curCallObjtcallNametcallListt curCallName((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pytParseNameGetObj#s cCs9t||ƒ}|dkrdSt|ƒtkr5dS|S(N(RvR.tcallableRk(RrRs((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyRS6s  R cCsyi|tj6|tj6|tj6}tj|dtƒ}tjd|ƒt    t
|ƒ|t
|ƒ|t
|ƒ|ƒdS(Nt ensure_asciis gm result:%s( RR-tDef_GMKey_ResultTypetDef_GMKey_ResultMsgtjsontdumpsRjRR#tSendToGMToolCommandResultR(R6tgmCmdt
resultTypetstrMsgtuseDatat
resultDcitt    resultMsg((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyR1Js 
 +cCsÑi}|jddƒ}|dkr(|Sx¢|jƒD]”\}}t|tƒsVq5nyG|jddƒ}|jddƒ}td|ƒ}|j|ƒ}Wntjdt    |ƒƒ|SX|||<q5W|S(    NtcodingR s
s`rs's\'su'%s's translateStr error! srcStr = %s (
R,titemst
isinstanceR\RR+tencodeRR#trepr(R4RKR„tkeytvaluet translateStr((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyR0Ys" (((#tGMToolPyInterfacetDBCommonRRRTRR8RRAR{t MangoDBCommonRt CollectionsRtCollections.CollectionDefinetCommonRRtProtocolRR    tConfigR
R"R.RoRMRNR3RgR=RvRSR1R0(((sj.\TCode\TeamServer\Server4\Servers\PyMongoDataServer\ServersRoute\GMToolLogicProcess\ProjSpecialProcess.pyt<module>s2
 
        
    <    L(