hzr
2025-04-24 c4e9044c78de1972d478d6cc2f07de257acec57c
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
44
45
46
47
48
49
50
51
Y²¾bc@sƒddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
dZ da dadadZd„Zd„Zddd„Zd    „Zd
„Zd „Zd „Zd efd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZd„Zd„Zddd„Z d„Z!dS(iÿÿÿÿNs%D:\EventServer\PythonScribe\EventLog\tiicCswy\tdkrdStjƒtdtdkr5dStdkrEdStjƒdadaWntjdƒnXdS(Nii<iRsOnTimeCloseScribeTxt ³ö´í(    t g_whStartTimettimet Def_WriteTimet g_writeHandletNonetcloset g_wFileNamet    GameWorldtErrLog(((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pytOnTimeCloseScribeTxt4s  
 
cCs=d}d}tjƒj||ƒtjd||fƒdS(Ntmobiles#³õʼ»¯Ê¼þ±¨¸æ: appID=%s,key=%s OK!(Rt GetGameWorldtEventReport_SetEventReportParamtLog(tappIDtkey((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyt InitDllAppIDKs
c Cs tjddƒ}|r(||kr(dS|tjddƒkrDdS| rV| rVdStjddƒ}tjddƒ}d}|rÕdtj|jƒƒ|jƒ|jƒf}tj    |ƒ}tj
|ƒ}n:tj |ƒ}    |    stj d||    fƒdSd    |    }|r"d
|}nd ||||||t jttjjƒƒjd ƒd ƒ|f}
tjd|
ƒtjƒjddddd |
ƒdS(Nt EventReportiit    ProductIDt    ReportUrlRs!&AccountID=%s&IP=%s&DeviceFlag=%ssGetPlayerMainServerID: %s-%sss%ss&%ssB%s?ProductID=%s&OperatorID=%s&RegionName=%s&EventID=%s%s&Time=%s%ss.isEventReport: %s(t IpyGameDataPYtGetFuncEvalCfgt ReadChConfigtGetPyMongoConfigRtGetPlatformAccIDtGetAccIDtGetIPt GetDeviceFlagtGetPlayerPlatformtGetPlayerServerSIDtGetPlayerMainServerIDR    turllibtquotetstrtdatetimettodaytsplittDebugLogR tEventReport_EventReport( t eventActionIDt
eventParamt    curPlayert
OperatorIDtreportActionIDListRRt
playerInfot
RegionNametsidtgetUrl((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyRYs8
 2"cCs¦tjƒrdS|jƒtjdƒkr/dSy\tjjtƒsTtj    tƒnt
ƒ}|j d|jƒ|j ƒfƒ|j ƒWntjdƒnXdS(Nt EventReportIDs%s    %s
sscribeʼþдÈë³ö´í¡£(Rt IsCrossServertGetScribeEventNameRtGetEvalChConfigtostpathtisdirt EventFilepathtmakedirst
GetWriteIOtwritetGetCurEventStrtflushR    (t
eventClasstfp_w((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyt
WriteEvent’s     #cCsitjjƒ}|tjdt|jtƒ}t|ƒjdƒdd jddƒ}|jddƒS(    Ntminutess.iiýÿÿÿs:s-s t_(R#R$t    timedeltaRtminuteR"R%treplace(tcurTimettmp((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pytFixTime¦s!)cCsAtjttjƒƒttjƒƒƒjƒ}t||dS(Ns.log(tmd5R"trandomRt    hexdigestR8(tfileStrt    sessionid((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pytGetLogFileName¬s1cCsitƒ}tr|tkrtSt|ƒ}tdkrDtjƒn|attdƒatjƒatS(Nsa+(    RHRRRNRRtopenRR(tfileTimet curFileName((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR:°s        t ScribeEventcBs#eZd„Zd„Zd„ZRS(cCsDd|_tjddƒ|_tjddƒd|_d|_dS(Ntyhlztplatformt PlatformNametServerIDiR(t product_slugRRt
agent_namet gameserver_noR(tself((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyt__init__És    cCs2|s
dS||_ttj|jƒƒ|_dS(N(RXR"RRRY(RZt accIDPlatform((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pytSetEventAgentInfoÐs
    cCsddj|ƒS(Ns"%s"s","(tjoin(RZttmpList((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyt GetEventStrÛs(t__name__t
__module__R[R]R`(((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyRRÈs         t concurrencycBs#eZd„Zd„Zd„ZRS(cCs tt|ƒjƒd|_dS(Ni(tsuperRcR[(RZ((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR[àscCs[|jstjƒ|_n|j|j|j|jt|jƒg}tt|ƒj    |ƒS(N(
RRtGetCurrentDataTimeStrRWRXRYR"RcRdR`(RZR_((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR<ès
     cCstjS(N(t ShareDefinetDef_UserAction_KeepOnline(RZ((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR3ðs(RaRbR[R<R3(((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyRcßs        tcustom_concurrencycBs#eZd„Zd„Zd„ZRS(cCs)tt|ƒjƒd|_d|_dS(NiR(RdRhR[Rct    type_name(RZ((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR[ös        cCsa|jstjƒ|_n|j|j|j|jt|jƒ|jg}t    t
|ƒj |ƒS(N( RRReRWRXRYR"RcRiRdRhR`(RZR_((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR<s    0cCstjS(N(Rft Def_UserAction_CustomConcurrency(RZ((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR3s(RaRbR[R<R3(((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyRhõs         t custom_eventscBs#eZd„Zd„Zd„ZRS(cCshtt|ƒjƒd|_d|_d|_d|_d|_d|_d|_    d|_
d|_ dS(NRi( RdRkR[t
account_idt
event_namet
session_idtipt account_namet account_typetchr_namet    chr_leveltcomments(RZ((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR[ s                                    c Cs‘|jstjƒ|_n|j|j|j|j|j|jt    |j
ƒ|j|j t    |j ƒ|j |j|jg }tt|ƒj|ƒS(N(RRReRWRXRoRYRlRpR"RqRrRsRmRtRnRdRkR`(RZR_((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR<s     $*cCstjS(N(RftDef_UserAction_CustomEvents(RZ((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR3(s(RaRbR[R<R3(((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyRk s            tchat_logcBs#eZd„Zd„Zd„ZRS(cCsqtt|ƒjƒd|_d|_d|_d|_d|_d|_d|_    d|_
d|_ d|_ dS(NRi( RdRvR[RlRrtcontenttcmc_nameRoRpRqRstobjecttaddinfo(RZ((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR[.s                                        cCs—|jstjƒ|_n|j|j|j|j|j|jt    |j
ƒ|j|j t    |j ƒ|j |j|j|jg}tt|ƒj|ƒS(N(RRReRWRXRoRYRlRpR"RqRrRsRyRwRzRxRdRvR`(RZR_((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR<As     $0cCstjS(N(RftDef_UserAction_ChatLog(RZ((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyR3Js(RaRbR[R<R3(((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyRv-s            cCs.||}ttjd||fd|ƒdS(Ns"PlayerCount=%s&TotalPlayerCount=%s(RRfRgR(tactivePlayerCountt tjgOnlineCntR+t
realPlayer((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pytWriteEvent_concurrencyOs
    cCs6tƒ}|j|ƒ||_||_t|ƒdS(N(RhR]RcRiR@(RTRcRitcustomConcurrency((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pytWriteEvent_custom_concurrencyXs              
cCsdS(N((R*RwRxttagNameRz((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pytWriteEvent_chat_log`scCsòtjd|ƒ}|re|jƒ}|jdƒd}|||jd|ƒ!}|j||ƒ}ntjd|ƒ}|rÊ|jƒ}|jdƒd}|||jd|ƒ!}|j||ƒ}n|jddƒ}|jddƒ}|S(    s‚
    <a color="255,255,0" href="GOTO 10000,74,60">[µØÍ¼:ĺ¹âÖ®³Ç(74,60)]</a>
    <A color="205,0,0" onmouseover="ShowInfo ITEM,55986" DATA="07 04 01 00 B2 DA 00 00 00 01 00 01 
        28 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
        00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 3C 00 00 00 7B 27 32 38 27 3A 5B 
        27 31 30 32 33 34 27 5D 2C 27 31 39 27 3A 5B 27 33 35 34 27 2C 27 38 35 36 27 2C 27 33 35 
        34 27 2C 27 37 35 38 27 2C 27 39 35 31 27 2C 27 31 30 35 32 27 5D 7D 04 00 00 00 00 00 00 
        00 00 00 00 00 00 00 00 00 00 ">[ÉñÊ¥µÄ°ÁÊÀÖ®¹­ +40]</a>
    s<a color=.*?>.*?</a>s>is<s<A color=.*?>.*?</a>s Rs
(tretsearchtgrouptindexRE(Rwt    tempMatchttempStrt    markIndextrepStr((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyt__GetEventChatContent{s
  ("RRfRR#RJRRIR5R„R RR8RRRRRR
RRR@RHRNR:RyRRRcRhRkRvRRRƒRŒ(((sOE:\SnxxServerCode\ServerPython\CoreServerGroup\GameServer\Script\EventReport.pyt<module>s>                   9                !"