hzr
1 天以前 c999bc50d37b5371f92ba71b3ab70f6eeb0e5076
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
«¼,Pc@sšddlZddlZddlZddlZddlmZddlmZedƒZ    d„Z
d„Z d„Z d„Z ed    kr–e ƒndS(
iÿÿÿÿN(tDataServerPlayerData(t CommonDefinesConfig.DBConfigcCs»ytjtjtjƒ}Wn*dtjtjfGHtjdƒdSXdtjtjfGHytdƒ}tdƒ}Wn$tk
r dGHtjdƒdSX|tj    }|j
}t j
ƒ}|j ƒj ƒ|_|j|ƒrd|GHtjdƒdS|j ƒj ƒ}tjƒ}|j|ƒ|jƒ}d|GHtjƒ}|j|ƒ|jƒ}d    |GH||_|j|ƒs¡d
|GHtjdƒdSd |GHtjdƒdS( Ns%Connect mongo db server %s:%s failed!tpauses!Connect mongo db server %s:%s ok!sInput accid below plz:sInput psw below plz:s input error!sAccid = %s exists!smd5:%ss md5 again:%ssReg accid = %s failed!sReg accid = %s ok(tpymongot
ConnectiontDBConfigt
USER_DB_IPt USER_DB_PORTtostsystemt    raw_inputtEOFErrort USER_DB_NAMEt tagDSAccountRtstriptlowertACCIDtadoLoadCtmd5tnewtupdatet    hexdigesttPswt
adoInsertC(t
connectiontaccidtpswtuserDbt
collectiontrectmd5Obj1tmd5Obj2((s0.\server\db\PyMongoDataServer\test\RegAccount.pytonCmd_registersL                                          cCs‡ytjtjtjƒ}Wn*dtjtjfGHtjdƒdSXdtjtjfGH|tj}|j}|j    ƒdGHdS(Ns%Connect mongo db server %s:%s failed!Rs!Connect mongo db server %s:%s ok!s    clear ok!(
RRRRRRR    R R tdrop(RRR((s0.\server\db\PyMongoDataServer\test\RegAccount.pyt onCmd_clear>s      
cCstjƒdS(N(tsystexit(((s0.\server\db\PyMongoDataServer\test\RegAccount.pyt
onCmd_exitKscCs_xXtrZtdƒjƒjƒ}d|}tƒj|ƒsCqntƒ|}|ƒqWdS(NsInput cmd plz:sonCmd_%s(tTrueR
RRtglobalsthas_key(tusrCmdt cmdFuncNametcmdFunc((s0.\server\db\PyMongoDataServer\test\RegAccount.pytmainNs    
 t__main__(RR#RRt CollectionsRtDBCommonRt
__import__RR R"R%R,t__name__(((s0.\server\db\PyMongoDataServer\test\RegAccount.pyt<module>
s         ,