cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
ê9A\c@sîdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zded„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((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pytOnLogin"s 
cCsetjƒ}xRt|jƒƒD]>}|j|ƒ}|dks|jƒ rSqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonet    GetInitOKR(t playerManagertiR    ((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyt!RefreshOperationAction_LoginAward-s cCsó|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
dt    j ƒ}||krydSt ||ƒ|s¬t jdƒ|jt    j ƒnt jd|||f|ƒtj|t    j
|t    j ƒt|ƒtS(Nis    µÇ¼½±Àø»î¶¯ÖØÖÃ!s5µÇ¼½±Àø±ä¸ü! state=%s,cfgID=%s,playerLoginAwardID=%s(t GetPlayerIDRRRRRRt ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_LoginAwardIDtDef_PDictType_LoginAwardt__SendLoginAwardMailR tDebugLogtClearNomalDictt PlayerControltNomalDictSetPropertyRtTrue(R    tplayerIDtactLoginAwardInfotstatetcfgIDtplayerLoginAwardID((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyR7s    
cCsntjd|ƒ}|sdS|jƒ}|s2dSi}xÛt|ƒD]Í\}}x¾|D]¶}tjd|ƒ}|s|qXn|jƒ}    |jtj||fdtjƒ}
|jtj    ||fdtjƒ} |
| |    } | sìqXnt
||| ƒ} t j || ƒqXWqEW|s dSg|j ƒD]\}}||dg^q-}tjd|jƒg|ƒdS(Nt ActLoginAwardt
LoginAwardiitSecondWeekReward(t IpyGameDataPYtGetIpyGameDatat GetTemplateIDt    enumeratetGetSingleTimesRRtDef_PDict_LoginAwardCurTimesRtDef_PDict_LoginAwardGotTimest__GetAwardItemR t AddDictValuetitemsR t SendMailByKeytGetID(R    R&tactBossIpyDatattemplateIDListt totalItemDicttdayttidListttidtipyDatat singleTimestcurTimestgotTimest    canGotCnttitemDicttitemIDtitemCntt totalItemList((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyRYs2   %%.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ƒt||    | ƒtS(sÔö¼ÓµÇ¼½±ÀøÏà¹Ø»î¶¯Íê³É´ÎÊýNiR(idR)sF   Ôö¼ÓµÇ¼½±ÀøÏà¹Ø»î¶¯Íê³É´ÎÊý dayIndex=%s, findTid=%s, realAddCnt=%s(RRRRRRRR+R,R-tActKey_DayIndextlent GetTotalTimesRRR0RtminR R!R RRR"(R    tactionIDtaddCnttisAddR$R%R&R7R8tdayIndext
dayTidListtfindTidR<R=t
totalTimesR?tupdTimest
realAddCnt((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pytAddLoginAwardActionCntxsP 
  %%  
 &c Csktj|dƒ}tjd|ƒ}|s.dS|jƒ}|jtj||fdtjƒ}|jtj    ||fdtjƒ}|||kr˜dSt
||ƒ}t |ƒ}t j |tj|ƒ}    ||    krëtj|dƒdS||}
tj|tj    ||f|
tjƒx9|jƒD]+\} } tj|| | dtjgƒq(Wt|||ƒdS(sÁìÈ¡µÇ¼½±Àø»î¶¯½±ÀøiR)NtGeRen_chenxin_998371i(R tToIntDefR+R,R/RRR0RR1R2RGt
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR t
NotifyCodeR!R4t ItemControlertGivePlayerItemR( R    R:t
templateIDR=R>R?R@t    awardDictt    needSpacet    packSpacet newGotTimesRCRD((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pytGetLoginAwardActionAward§s* %%  
&#cCs\i}xO|jƒD]A\}}}| s| r6qn|j|dƒ||||<qW|S(Ni(t    GetRewardR(R    R=ttimesR^RCRDtisbind((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyR2Ç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ÿÿÿÿR)( RRRRRRRR+R,R-RGtrangetChPyNetSendPackttagMCActLoginAwardPlayerInfot DayInfoListttagMCActLoginAwardDayPlayerInfotDayIndextTaskListttagMCActLoginAwardTaskInfot
TemplateIDRRR0RtCurTimesR1tGotTimestappendtACounttCountt NetPackCommont SendFakePack(R    R:R]R$R%R&R7R8t syncDayListtpackDatatcdayttiemInfottIDttipyDatattaskInfo((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyRÑsL                       ((cCsôtjjtjiƒ}|jtjdƒ}|jtjdƒ}|sLdStjd|ƒ}|shdS|j    ƒ}|s~dSt
j ƒj tj ƒd}tjƒ}|jƒt
j|jƒ|ƒ|_t
j|jƒ|ƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_g|_g}x{t|ƒD]m\}    }
tj ƒ} |
| _!t"|
ƒ| _#x*|
D]"} | |kru|j$| ƒququW|jj$| ƒq>Wt"|jƒ|_%g|_&x|D]ù} tjd| ƒ} | st
j'd| ƒqÑntj(ƒ}| |_)| j*ƒ|_+| j,ƒ|_-| j.ƒ|_/g|_0xT| j1ƒD]F\}}}tj2ƒ}||_3||_4||_5|j0j$|ƒq^Wt"|j0ƒ|_6|j&j$|ƒqÑWt"|j&ƒ|_7t8j9||ƒdS(NiR(iR)s    µÇ¼½±ÀøÄ£°å±íÕÒ²»µ½Ä£°å%s(:RRRRRRRR+R,R-R t GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayRgttagMCActLoginAwardInfotCleartGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatetGetAdvanceMinutestAdvanceMinutest GetIsDayResett
IsDayResett GetResetTypet    ResetTypet
GetLVLimittLimitLVRiR.ttagMCActLoginAwardDayInfot TemplateListRGtActCntRqtDayCntt
ActionInfotErrLogttagMCActLoginAwardActionRnt GetActionTypet
ActionTypeRHt
TotalTimesR/t SingleTimestItemInfoRcttagMCActLoginAwardItemtItemIDtItemCnttIsBindRstTCountRtRu(R    R$R%R&R7R8t openServerDaytactInfoR;R:t
dayActListtdayInfoR<R=ttInfoRCRDtisBindt    awardItem((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyRýsl  
                                      (t__doc__RXR RR+R R[RgRtRRRVR RRRR"RSRbR2RR(((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyt<module>s(                    
    "    /     
,