xdh
2019-02-21 92eee67f85cbd29feb1287ae5a15ad0c787e95cb
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
x{[c@s$ddlZddlZddlZddlZddlZejdƒZgagadZ    d„Z
d„Z d„Z d„Z d„Zdgd    „Zidgd
„Zdgd „Zdgd „Zdgd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZdS(iÿÿÿÿNt EncodingText tagDBPlayercCsŒtjƒ}|jƒ}|s6tƒtjdƒdS|jƒ}|sStƒdSt|jddƒƒ}t    |ƒ}t
|ƒtƒdS(Ns²Ù×÷DBʧ°Ü£¡£¡£¡tObjectIdtstr( tIPY_GameServertIPY_DGDBOperResultt    GetResultt __ResetDBOpert    GameWorldtErrLogt GetResultSettevaltreplacetTranslateOutDBListt__DoLogic_DGDBOperResult(tindextticktdbOperResultInfotresultt    resultSett resultSetList((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pytGetDGDBOperResultInfo8s
 
cCs-ts
dSt\}}|r)|||ƒSdS(N(tg_proccessCmdInfo(RtcallFunctextendValueList((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRas   cCs"tjd|ƒtj|ƒdS(NsÌí¼ÓDBComand operList=%s(RtLogtg_dbCommandListtappend(toperList((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pytAddDBCommandListrs cCs    ttƒdkrdStjƒjtjƒ}|r‚tjƒjtjƒ}||tjtj    krjdSt
ƒtj dƒdStjƒj tjdƒtj dƒ\}}}tjƒjdt|ƒƒtjd|ƒ||gatjƒj tj|ƒdS(Niswait for DB responses overtimeissend dbcommand:%s(tlenRRt GetGameWorldt GetDictByKeytChConfigt!Def_PlayerKey_IsStopSendDBCommandtDef_PlayerKey_SendDBComTicktTYPE_Tick_TimetTYPE_SendDBCommandTickRR    tSetDicttpopt
SendDBOperRRR(RtisStopSendInfotsendTicktsendDictRR((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt PyDBProccess~s"  cCs#gatjƒjtjdƒdS(Ni(RRRR&R!R"(((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyR©scCsDt|ƒ}i|d6dd6|d6}|||g}t|ƒdS(Nt
collectiontinserttopertdocs(tTranslateInDBListR(R-t dictInfoListRRt
resultListtoperDictR((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt InsertDBOperºs
 
cCsKt|ƒ}i|d6dd6|d6|d6}|||g}t|ƒdS(NR-tfindR/tspectfields(tTranslateInDBDictR(R-tfindDictR8RRR4R((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt
FindDBOperËs
 "
cCs^t|ƒ}t|ƒ}i|d6dd6|d6i|d6d6}|||g}t|ƒdS(NR-tupdateR/R7s$setR0(R9R(R-t tagFieldDictt
updateDictRRR4R((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt UpdateDBOperÛs   )
cCsDt|ƒ}i|d6dd6|d6}|||g}t|ƒdS(NR-tremoveR/R7(R9R(R-R=RRR4R((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt RemoveDBOperés
 
cCs1i|d6dd6}|||g}t|ƒdS(NR-tdropR/(R(R-RRR4R((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt
DropDBOperõs
cCs4g}x'|D]}t|ƒ}|j|ƒq W|S(N(R9R(R2R3tinfoDicttresDict((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyR1s
  cCs7i}x*|jƒD]\}}t|ƒ||<qW|S(N(titemst IncomingText(ttagDictt
resultDicttkeytvalue((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyR9scCs4g}x'|D]}t|ƒ}|j|ƒq W|S(N(tTranslateOutDBDictR(R2R3RDRE((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyR s
  cCs7i}x*|jƒD]\}}t|ƒ||<qW|S(N(RFt OutgoingText(RHRIRJRK((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRL)scCs?t|tƒr;tdr&tj|ƒSttd|ƒdS|S(Nii(t
isinstancetunicodet EncodingListtbase64t    b64decodetUnicodeToEncoding(ttext((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRM5s
 
 cCs?t|tƒr;tdr&tj|ƒSttd|ƒdS|S(Nii(RNRRPRQt    b64encodetEncodingToUnicode(RT((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRGAs
 
 cCsEyt||ƒ}Wn%tjd||fƒtdfSXt|fS(Ns3##EncodingToUnicode error, input=%s, srcEncoding=%sterror(RORRtFalsetTrue(t srcEncodingtinputR((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRVNs  cCsEy|j|ƒ}Wn%tjd||fƒtdfSXt|fS(Ns3##UnicodeToEncoding error, input=%s, dstEncoding=%stError(tencodeRRRXRY(t dstEncodingR[R((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRS[s  (RR!Rt ReadChConfigRQtGetEvalChConfigRPRRtTable_DBPlayerRRRR,RtNoneR5R;R?RARCR1R9R RLRMRGRVRS(((sG.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt<module>s4         )             +