cehua-HWJ35
2019-03-07 cd6fbfa9dce9c101fe7a819c811036cfbbefab8d
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
T*z\c@s0ddlZddlZddlZddlZddlZddlZejdƒZgaga    dZ
d„Z d„Z d„Z d„Zd„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((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pytGetDGDBOperResultInfo9s
 
cCs-ts
dSt\}}|r)|||ƒSdS(N(tg_proccessCmdInfo(RtcallFunctextendValueList((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRbs   cCs"tjd|ƒtj|ƒdS(NsÌí¼ÓDBComand operList=%s(RtLogtg_dbCommandListtappend(toperList((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pytAddDBCommandListss cCsttƒdkrdStjƒjtjƒ}|r‚tjƒjtjƒ}||tjtj    krjdSt
ƒtj dƒdStjƒj tjdƒtj dƒ\}}}tjƒjdtj|dtƒƒtjd|ƒ||gatjƒj tj|ƒdS(Niswait for DB responses overtimeit ensure_asciissend dbcommand:%s(tlenRRt GetGameWorldt GetDictByKeytChConfigt!Def_PlayerKey_IsStopSendDBCommandtDef_PlayerKey_SendDBComTicktTYPE_Tick_TimetTYPE_SendDBCommandTickRR    tSetDicttpopt
SendDBOpertjsontdumpstFalseRR(RtisStopSendInfotsendTicktsendDictRR((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt PyDBProccesss" % cCs#gatjƒjtjdƒdS(Ni(RRR R'R"R#(((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRªscCsDt|ƒ}i|d6dd6|d6}|||g}t|ƒdS(Nt
collectiontinserttopertdocs(tTranslateInDBListR(R1t dictInfoListRRt
resultListtoperDictR((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt InsertDBOper»s
 
cCsKt|ƒ}i|d6dd6|d6|d6}|||g}t|ƒdS(NR1tfindR3tspectfields(tTranslateInDBDictR(R1tfindDictR<RRR8R((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt
FindDBOperÌs
 "
cCs^t|ƒ}t|ƒ}i|d6dd6|d6i|d6d6}|||g}t|ƒdS(NR1tupdateR3R;s$setR4(R=R(R1t tagFieldDictt
updateDictRRR8R((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt UpdateDBOperÜs   )
cCsDt|ƒ}i|d6dd6|d6}|||g}t|ƒdS(NR1tremoveR3R;(R=R(R1RARRR8R((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt RemoveDBOperês
 
cCs1i|d6dd6}|||g}t|ƒdS(NR1tdropR3(R(R1RRR8R((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt
DropDBOperös
cCs4g}x'|D]}t|ƒ}|j|ƒq W|S(N(R=R(R6R7tinfoDicttresDict((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyR5s
  cCs7i}x*|jƒD]\}}t|ƒ||<qW|S(N(titemst IncomingText(ttagDictt
resultDicttkeytvalue((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyR=scCs4g}x'|D]}t|ƒ}|j|ƒq W|S(N(tTranslateOutDBDictR(R6R7RHRI((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyR s
  cCs7i}x*|jƒD]\}}t|ƒ||<qW|S(N(RJt OutgoingText(RLRMRNRO((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRP*scCs?t|tƒr;tdr&tj|ƒSttd|ƒdS|S(Nii(t
isinstancetunicodet EncodingListtbase64t    b64decodetUnicodeToEncoding(ttext((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRQ6s
 
 cCs?t|tƒr;tdr&tj|ƒSttd|ƒdS|S(Nii(RRRRTRUt    b64encodetEncodingToUnicode(RX((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRKBs
 
 cCsEyt||ƒ}Wn%tjd||fƒtdfSXt|fS(Ns3##EncodingToUnicode error, input=%s, srcEncoding=%sterror(RSRRR,tTrue(t srcEncodingtinputR((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRZOs  cCsEy|j|ƒ}Wn%tjd||fƒtdfSXt|fS(Ns3##UnicodeToEncoding error, input=%s, dstEncoding=%stError(tencodeRRR,R\(t dstEncodingR^R((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyRW\s  (RR"Rt ReadChConfigRUR*tGetEvalChConfigRTRRtTable_DBPlayerRRRR0RtNoneR9R?RCRERGR5R=R RPRQRKRZRW(((sH.\\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDBOper.pyt<module>s6          )             +