xdh
2019-02-13 63d89e4284f155ca71d74616b515e9559fd515aa
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
²c\c@sñdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„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((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ƒ}|rzt|t    j
dt t ƒt |ƒn|j t    jdt    jƒ}||kr¥dSt||ƒ|sØtjdƒ|jt    jƒntjd|||f|ƒtj|t    j|t    jƒt|ƒtS(Niis    µÇ¼½±Àø»î¶¯ÖØÖÃ!s5µÇ¼½±Àø±ä¸ü! state=%s,cfgID=%s,playerLoginAwardID=%s(t GetPlayerIDRRRRRRt ActKey_CfgIDtAddLoginAwardActionCnttChConfigtDef_LoginAct_LogintFalseRtNomalDictGetPropertytDef_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.pyR Xs2   %%.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+idR,sF   Ôö¼ÓµÇ¼½±ÀøÏà¹Ø»î¶¯Íê³É´ÎÊý dayIndex=%s, findTid=%s, realAddCnt=%s(RRRRRRRR.R/R0tActKey_DayIndextlent GetTotalTimesRRR3RtminR#R$R R!RR%(R    tactionIDtaddCnttisAddtisSyncR'R(R)R:R;tdayIndext
dayTidListtfindTidR?R@t
totalTimesRBtupdTimest
realAddCnt((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyRwsR 
  %%  
 &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/R2RRR3RR4R5RJt
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR#t
NotifyCodeR$R7t ItemControlertGivePlayerItemR( R    R=t
templateIDR@RARBRCt    awardDictt    needSpacet    packSpacet newGotTimesRFRG((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@ttimesRaRFRGtisbind((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyR5Ç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/R0RJtrangetChPyNetSendPackttagMCActLoginAwardPlayerInfot DayInfoListttagMCActLoginAwardDayPlayerInfotDayIndextTaskListttagMCActLoginAwardTaskInfot
TemplateIDRRR3RtCurTimesR4tGotTimestappendtACounttCountt NetPackCommont SendFakePack(R    R=R`R'R(R)R:R;t 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/R0R t GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayRjttagMCActLoginAwardInfotCleartGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatetGetAdvanceMinutestAdvanceMinutest GetIsDayResett
IsDayResett GetResetTypet    ResetTypet
GetLVLimittLimitLVRlR1ttagMCActLoginAwardDayInfot TemplateListRJtActCntRttDayCntt
ActionInfotErrLogttagMCActLoginAwardActionRqt GetActionTypet
ActionTypeRKt
TotalTimesR2t SingleTimestItemInfoRfttagMCActLoginAwardItemtItemIDtItemCnttIsBindRvtTCountRwRx(R    R'R(R)R:R;t openServerDaytactInfoR>R=t
dayActListtdayInfoR?R@ttInfoRFRGtisBindt    awardItem((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyRýsl  
                                      (t__doc__R[R RR.R#R^RjRwRRRYR RRR R%RReR5RR(((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyt<module>s(                    
    !    0     
,