cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
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
(e\c@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((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 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((s^.\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((s^.\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Ôö¼ÓµÇ¼½±ÀøÏà¹Ø»î¶¯Íê³É´ÎÊýNiR0idR1sF   Ôö¼ÓµÇ¼½±ÀøÏà¹Ø»î¶¯Íê³É´ÎÊý dayIndex=%s, findTid=%s, realAddCnt=%s(RRRRRRRR3R4R5tActKey_DayIndextlent GetTotalTimesRRR7RtminR$R%R R"RR((R    tactionIDtaddCnttisAddtisSyncR*R+R,R>R?tdayIndext
dayTidListtfindTidRDREt
totalTimesRGtupdTimest
realAddCnt((s^.\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ÁìÈ¡µÇ¼½±Àø»î¶¯½±ÀøiR1NtGeRen_chenxin_998371i(R tToIntDefR3R4R6RRR7RR8R'R9ROt
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR$t
NotifyCodeR%R;t ItemControlertGivePlayerItemR(R    RAt
templateIDRERFRGRHRCt    awardDictt    needSpacet    packSpacet newGotTimesRKRL((s^.\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    REtworldLVttimest awardItemDictRftlvtwlvListtfindWlvtwlvtitemListRKRLtisbind((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyR9Í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(NiR0iÿÿÿÿR1( RRRRRRRR3R4R5ROtrangetChPyNetSendPackttagMCActLoginAwardPlayerInfot DayInfoListttagMCActLoginAwardDayPlayerInfotDayIndextTaskListttagMCActLoginAwardTaskInfot
TemplateIDRRR7RtCurTimesR8tGotTimestappendtACounttCountt NetPackCommont SendFakePack(R    RAReR*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~dS|jtj
gƒ}t j ƒj tjƒd}tjƒ}|jƒt j|jƒ|ƒ|_t j|jƒ|ƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_g|_g}    x t |ƒD]’\}
} tj!ƒ} | | _"t#| ƒ| _$x*| D]"} | |    krŠ|    j%| ƒqŠqŠW|
t#|ƒkrÌ||
nd| _&|jj%| ƒqSWt#|jƒ|_'g|_(x°|    D]¨} tjd| ƒ}|s@t j)d| ƒq ntj*ƒ}| |_+|j,ƒ|_-|j.ƒ|_/|j0ƒ|_1|j2ƒ|_3t#|j3ƒ|_4|j(j%|ƒq Wt#|j(ƒ|_5t6j7||ƒdS(NiR0iR1s    µÇ¼½±ÀøÄ£°å±íÕÒ²»µ½Ä£°å%s(8RRRRRRRR3R4R5R R t GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayRzttagMCActLoginAwardInfotCleartGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatetGetAdvanceMinutestAdvanceMinutest GetIsDayResett
IsDayResett GetResetTypet    ResetTypet
GetLVLimittLimitLVR|R&ttagMCActLoginAwardDayInfot TemplateListROtActCntR„tWorldLVtDayCntt
ActionInfotErrLogttagMCActLoginAwardActionRt GetActionTypet
ActionTypeRPt
TotalTimesR6t SingleTimesRltItemInfoR†tTCountR‡Rˆ(R    R*R+R,R>R?R.t openServerDaytactInfoRBRAt
dayActListtdayInfoRDREttInfo((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyR sd  
           %          (t__doc__R`R RR3R$RcRzR‡RRR^tjsonR RRR!R(RRjR9RR(((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLogin.pyt<module>s*                     
    %    !0     ,