hwj35
2025-06-23 aa0f971ae9a59f0fd98d57b6c1d1663a270be92c
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
52
53
54
55
56
57
58
59
60
61
62
63
64
¤9gc@sýdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z d„Z d„Zd„Zd„Zdeed„Zd    „Zdd
„Zddd „Zd „ZdS( sVersion = 2018-07-12 16:50iÿÿÿÿNcCsZt|ƒ}|sVtjjtjiƒ}t|ƒ|jtjƒrVt|ƒqVndS(N(    t__CheckPlayerLoginAwardActiont
PyGameDatatg_operationActionDicttgett ShareDefinetOperationActionName_LoginAwardtSyncLoginAwardInfot ActKey_StatetSyncLoginAwardPlayerInfo(t    curPlayertisResettactCostRebateInfo((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pytOnLogin#s 
cCs[tjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsIqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(t playerManagertiR    ((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyt!RefreshOperationAction_LoginAward.s c    Cst|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|rzt|t    j
dt t ƒt |ƒn|j t    jdt    jƒ}||kr¥dS|jtjgƒ}|rÐt||ƒntjdƒ|jt    jƒtjd||||f|ƒtj|t    j|t    jƒx:t|ƒD],\}}tj|t    j||t    jƒq6Wt|ƒtS(Niis    µÇ¼½±Àø»î¶¯ÖØÖÃ!sHµÇ¼½±Àø±ä¸ü! state=%s,cfgID=%s,playerLoginAwardID=%s£¬actWorldLVList=%s(t GetPlayerIDRRRRRRt ActKey_CfgIDtAddLoginAwardActionCnttChConfigtDef_LoginAct_LogintFalseRtNomalDictGetPropertytDef_PDict_LoginAwardIDtDef_PDictType_LoginAwardtActKey_WorldLVListt__SendLoginAwardMailR tDebugLogtClearNomalDictt PlayerControltNomalDictSetPropertyt    enumeratetDef_PDict_LoginAwardWorldLVRtTrue(    R    tplayerIDtactLoginAwardInfotstatetcfgIDtplayerLoginAwardIDtactWorldLVListRt
actWorldLV((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyR8s*     $
cCstjd|ƒ}|sdS|jƒ}|s2dSi}xýt|ƒD]ï\}}|jtj|dtjƒ}xÁ|D]¹}tjd|ƒ}    |    s›qwn|    jƒ}
|jtj    ||fdtjƒ} |jtj
||fdtjƒ} | | |
} | s qwnt ||    || ƒ}t j ||ƒqwWqEW|sBdSg|jƒD]\}}||dg^qO}tjd|jƒg|ƒdS(Nt ActLoginAwardit
LoginAwardit LoginAward_1(t IpyGameDataPYtGetIpyGameDatat GetTemplateIDR%RRR&RtGetSingleTimestDef_PDict_LoginAwardCurTimestDef_PDict_LoginAwardGotTimest__GetAwardItemR t AddDictValuetitemsR#t SendMailByKeytGetID(R    R+t
actIpyDatattemplateIDListt totalItemDicttdayttidListt playerWorldLVttidtipyDatat singleTimestcurTimestgotTimest    canGotCnttitemDicttitemIDtitemCntt totalItemList((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyR ]s4   %%.icCs|s
dStjjtjiƒ}|jtjdƒ}|jtjdƒ}| sZ| r^dStjd|ƒ}|szdS|j    ƒ}    |jtj
dƒ}
|
t |    ƒkr±dS|    |
} d} x(| D] } | d|krÈ| } PqÈqÈW| södStjd| ƒ}|sdS|j ƒ}|j tj|
| fdtjƒ}|r‹|dkr[|nt|||ƒ}|dkr~dS||}nt||ƒ}||}|dkr´dStj|tj|
| f|tjƒtjd|
| |fƒ|r t||
| ƒntS(sÔö¼ÓµÇ¼½±ÀøÏà¹Ø»î¶¯Íê³É´ÎÊýNiR/idR0sF   Ôö¼ÓµÇ¼½±ÀøÏà¹Ø»î¶¯Íê³É´ÎÊý dayIndex=%s, findTid=%s, realAddCnt=%s(RRRRRRRR2R3R4tActKey_DayIndextlent GetTotalTimesRRR6RtminR#R$R R!RR'(R    tactionIDtaddCnttisAddtisSyncR)R*R+R=R>tdayIndext
dayTidListtfindTidRCRDt
totalTimesRFtupdTimest
realAddCnt((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyR~sR 
  %%  
 &cCstj|dƒ}tjd|ƒ}|s.dS|jƒ}|jtj||fdtjƒ}|jtj    ||fdtjƒ}|||kr˜dS|jtj
|dtjƒ}t |||ƒ}t |ƒ}    t j|tj|    ƒ}
|    |
kr tj|dƒdS||} tj|tj    ||f| tjƒx9|jƒD]+\} } tj|| | dtjgƒqJWt|||ƒdS(sÁìÈ¡µÇ¼½±Àø»î¶¯½±ÀøiR0NtGeRen_chenxin_998371(R tToIntDefR2R3R5RRR6RR7R&R8RNt
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR#t
NotifyCodeR$R:t ItemControlertGivePlayerItemR(R    R@t
templateIDRDRERFRGRBt    awardDictt    needSpacet    packSpacet newGotTimesRJRK((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pytGetLoginAwardActionAward®s, %%  
&#cCsÒi}t|jƒƒ}g|D]}t|ƒ^q}|jƒ|d}x$|D]}    ||    krR|    }PqRqRW|t|ƒ}
xI|
D]A\} } } | s‰| r¬q‰n|j| dƒ| ||| <q‰W|S(Niÿÿÿÿi(tevalt    GetRewardtinttsorttstrR(R    RDtworldLVttimest awardItemDictRetlvtwlvListtfindWlvtwlvtitemListRJRKtisbind((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyR8Ís
 
  "cCstjjtjiƒ}|jtjdƒ}|jtjdƒ}| sP| rTdStjd|ƒ}|spdS|j    ƒ}|s†dS|dkr´|t
|ƒkr¨dS|g}nt t
|ƒƒ}t j ƒ}    g|    _x|D] }
t jƒ} |
| _g| _xÃ||
D]·} |dkr5| |kr5qntjd| ƒ} | sSqnt jƒ}| |_|jtj|
| fdtjƒ|_|jtj|
| fdtjƒ|_| jj|ƒqWt
| jƒ| _|    jj| ƒqâWt
|    jƒ|    _tj||    ƒdS(NiR/iÿÿÿÿR0( RRRRRRRR2R3R4RNtrangetChPyNetSendPackttagMCActLoginAwardPlayerInfot DayInfoListttagMCActLoginAwardDayPlayerInfotDayIndextTaskListttagMCActLoginAwardTaskInfot
TemplateIDRRR6RtCurTimesR7tGotTimestappendtACounttCountt NetPackCommont SendFakePack(R    R@RdR)R*R+R=R>t syncDayListtpackDatatcdayttiemInfottIDttipyDatattaskInfo((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyRàsL                       ((cCs²tjjtjiƒ}|jtjdƒ}|jtjdƒ}|sLdStjd|ƒ}|shdS|j    ƒ}|s~dS|jtj
gƒ}t j |ƒ\}}t jƒ}    |    jƒ||    _||    _|jƒ|    _|jƒ|    _|jƒ|    _|jƒ|    _g|    _g}
x t|ƒD]’\} } t jƒ} | | _t| ƒ| _x*| D]"}||
kr_|
j |ƒq_q_W| t|ƒkr¡|| nd| _!|    jj | ƒq(Wt|    jƒ|    _"g|    _#x°|
D]¨}tjd|ƒ}|st j$d|ƒqànt j%ƒ}||_&|j'ƒ|_(|j)ƒ|_*|j+ƒ|_,|j-ƒ|_.t|j.ƒ|_/|    j#j |ƒqàWt|    j#ƒ|    _0t1j2||    ƒdS(NiR/R0s    µÇ¼½±ÀøÄ£°å±íÕÒ²»µ½Ä£°å%s(3RRRRRRRR2R3R4RR tGetOperationActionDateStrRyttagMCActLoginAwardInfotCleart    StartDatetEndtDatetGetAdvanceMinutestAdvanceMinutest GetIsDayResett
IsDayResett GetResetTypet    ResetTypet
GetLVLimittLimitLVR{R%ttagMCActLoginAwardDayInfot TemplateListRNtActCntRƒtWorldLVtDayCntt
ActionInfotErrLogttagMCActLoginAwardActionR€t GetActionTypet
ActionTypeROt
TotalTimesR5t SingleTimesRktItemInfoR…tTCountR†R‡(R    R)R*R+R=R>R-t startDateStrt
endDateStrtactInfoRAR@t
dayActListtdayInfoRCRDttInfo((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyR sd  
                   %          (t__doc__R_R RR2R#RbRyR†RRR]tjsonR RRR R'RRiR8RR(((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyt<module>s*                     
    %    !0     ,