1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
^oœ\c@s‘dZddlZddlZddlZddlZddlZddlZd„Zd„Zd„Z    d„Z
d„Z d„Z d    „Z dS(
sVersion = 2012-08-02 09:30iÿÿÿÿNcCsAt|ƒ}tjƒjƒ}|j|jƒt|ƒ|ƒdS(N(t__GetServerUserDatat    GameWorldt GetGameWorldtGetUserInfoCollectiontAddClientUserDatat GetPlayerIDtlen(t    curPlayertsaveDatatuserInfoCollection((s\E:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDataCollect.pytOnLogin"s cCsntjƒ}tjƒjƒ}|jƒ}|dkrKtj|ƒj}n|j    ||j
ƒ|j ƒƒdS(Ni( tIPY_GameServertIPY_CClientMachineNoteRRRtGetKeytctypestc_ulongtvaluetAddClientMachineDatat
GetDataLentGetData(tindextticktrecvPackR    tkey((s\E:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDataCollect.pytRecvClientMachineInfo7s            cCs¬tjƒj|ƒ}|jƒ}tjƒ}|jƒ}||krctjd||f|ƒdS|jƒdt    |ƒ}tj
ƒj ƒ}|j |t |ƒ|ƒdS(Ns+Íæ¼ÒÊý¾Ý²É¼¯£¬Óû§ÐÅÏ¢key(%s)²»ÎªÍæ¼ÒID(%s)s;(RtGetPlayerManagertGetPlayerByIndexRR tIPY_CClientUserNoteR tErrLogRRRRRR(RRRt curPlayerIDRRtdataR    ((s\E:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDataCollect.pytRecvClientUserNoteVs    c
 
CsŒ|jƒ}|jƒ}|jƒ}|jƒ}|jƒ}|jƒ}|jƒ}|jƒ}dtj    ||||||||f    }    |    S(NsKSDataVer:%s;IP:%s;Name:%s;Lv:%s;Sex:%s;Country:%s;Job:%s;MapID:%s;LineNO:%s(
tGetIPtGetNametGetLVtGetSext
GetCountrytGetJobtGetMapIDt    GetLineNOtChConfigtDef_DataCollect_Ver(
Rt curPlayerIPt curPlayerNamet curPlayerLvt curPlayerSextcurPlayerCountryt curPlayerJobtcurPlayerMapIDtcurPlayerLineNOtserverUserData((s\E:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDataCollect.pyRms        cCsÌtjƒjƒ}|jƒ}xBt|ƒD]4}|j|ƒ}t|jƒ|jƒd|ƒq+W|j    ƒ|j
ƒ}xBt|ƒD]4}|j |ƒ}t|jƒ|jƒd|ƒq†W|j ƒdS(Nii( RRRtGetClientMachineDatasCounttrangetGetClientMachineDataByIndext LogPlayerDataR RtClearClientMachineDatastGetClientUserDatasCounttGetClientUserDataByIndextClearClientUserDatas(t
curTimeStrR    tmachineDataCntRt machineDatat userDataCnttuserData((s\E:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDataCollect.pytCollectAndClearPlayerData€s #
 #
c    Csù|jƒd}tjƒjdƒd}|dkr]t|ƒ}tjj|d|ƒ}n-td||ƒ}tjj|d|ƒ}tjj|ƒs¬tj|ƒn|d}tjj||ƒ}t    |dƒ}|j
|dƒ|j ƒdS(    Nis\s\ServerCollectFile\%s\Machines playerID:%s;s\ServerCollectFile\%s\Users.logtabs
( tsplitR(t
GetAppPatht __EncryptStrtostpathtjointisdirtmakedirstfiletwritetclose(    tdataKeytdataStrtdataTypeR;tdiskPathtlogPatht logFileNametlogFiletsaveFile((s\E:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDataCollect.pyR6¢s  
 
cCsGd}x+|D]#}|tt|ƒtjAƒ7}q Wtj|ƒ}|S(Nt(tchrtordR(tDef_PlayerDataCollect_Keytbase64t    b64encode(tinStrtoutStrtchar((s\E:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDataCollect.pyRDÀs
 !(t__doc__RR(R RYRRER
RRRR@R6RD(((s\E:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerDataCollect.pyt<module>s                          "