cehua-TT
2018-09-17 ba7f290f762ba6ecef7fa57cdfec0ea886cac418
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
‹jŸ[c@sëddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zd„Zd„Zggd„Zd    „Zd
„ZdS( iÿÿÿÿNcCsn|dks|dkrgStjd|ƒ}|s8gS|jƒ}|t|ƒkr`|dn||}|S(NtActFlashGiftbagiÿÿÿÿ(tNonet IpyGameDataPYtGetIpyGameDatatGetGiftbagTypeListtlen(tcfgIDtdayIndextipyDatatgiftbagTypeListt todayGiftbag((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR s &cCst|ƒdS(N(t__CheckPlayerFlashGiftbagAction(t    curPlayer((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyt OnPlayerLogin*s
cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}|jƒdkrLqnt|ƒqWdS(Ni(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextGetIDR (t playerManagertindexR ((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pytRefreshFlashGiftbagActionInfo.s c     Cs(|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j ƒ}|sgnt ||jtj dƒƒ}t}||krt}t||ƒtj|t
j |ƒtj|t
jdƒtjd||||f|ƒt|ƒntjd|jƒƒ|j    t
jƒ}    |rñ|rñ||    krñtjd|ƒ}
|
rñ|
jƒrñ|jƒ|
jƒkrñtj|
jƒ|g|
jƒƒtj|t
j|ƒtjd||    f|ƒqñn| r$|r$|rt|d|ƒnt|ƒn|S(NisAÏÞʱÀñ°üÖØÖÃ! actID=%s,playerActID=%s,state=%s,giftbagTypeList=%ssÏÞʱÀñ°ü»î¶¯ID²»±ä£¬²»´¦Àí£¡Rs7    ·¢ËÍÐÂÏÞʱÀñ°üÓʼþÌáÐÑ! state=%s,playerMailState=%sR    (t GetPlayerIDt
PyGameDatatg_operationActionDicttgett ShareDefinet OperationActionName_FlashGiftbagt    ActKey_IDt ActKey_Statet ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_FlashGiftbagIDRtActKey_DayIndextFalsetTruet__ResetGiftbagItemBuyCountt PlayerControltNomalDictSetPropertytDef_PDict_FlashGiftbagMailStateRtDebugLogtSync_FlashGiftbagActionInfoRRt
GetMailKeytGetLVt
GetLVLimitt SendMailByKeytGetMailItemPrizetSyncFlashGiftbagBuyCount( R tplayerIDtactInfotactIDtstateRt playerActIDR    tisResettplayerMailStatetflashGiftbagIpyData((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR 8s8 *    *"   cCsÖg}tjƒ}x§t|jƒƒD]“}|j|ƒ}|jƒsLq%n|jƒ|krdq%ntj|j    ƒ}|j
|ƒdkr’q%nt j ||dƒ|j |j    ƒƒq%W|rÒt||ƒndS(Ni(RtIPY_DataRtGetFlashGiftbagCounttGetFlashGiftbagByIndextGetBuyCountLimittGetGiftbagTypeR!tDef_PDict_FlashGiftbagBuyCountt GetGiftbagIDR R'R(tappendR1(R R    t
syncIDListt
ipyDataMgrtitgiftbagt    buyCntKey((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR&]s   c Cs‚tjjtjiƒ}|s5tj|d|ƒdStjjtjiƒ}|jtjdƒ}|stj|d|ƒdSt|jtj    dƒ|jtj
dƒƒ}|sÉtj|d|ƒdS|t |ƒkrå|dn ||d}t j di|d6ttƒ}g}d}    x=|D]5}
|j|
jƒƒ|
jƒ|kr%|
}    Pq%q%W|    sˆtj|d    |||f|ƒdS|    jƒ} |    jƒ} |ji| d
6| d 6ƒ|    jƒ} |jtj| ƒ}| r.|ji| d 6|d 6ƒ|| kr.tj|d|| f|ƒdSntj|tj| |dƒ| rït | ƒ}tj|tj|ƒ}||kr¡tjd|jƒg| ƒqïxK| D]@\}}}t j!||||tjgdtj"t|gƒq¨Wnt#j$|j%ƒƒ}|    j&ƒ}|rnt'| |ƒ}|s1dnt(|j)ƒƒ}tj*d||j+ƒ||    j,ƒgƒnt-|| gƒtS(Ns!FlashGiftbag action info is null!isFlashGiftbag state is 0!s%FlashGiftbag GiftbagTypeList is null!iÿÿÿÿit FlashGiftbagt GiftbagTypes^OrderInfo giftbagIDList=%s can not found actGiftbagID in actGiftbagIDList=%s,actGiftbagType=%st    giftbagIDt giftItemListt buyCountLimittbuyCounts:FlashGiftbag Pay count limit !buyCount=%s,buyCountLimit=%sttevent(.RRRRRtDataRecordPackt DR_CTGErrorRRRR#RRtGetIpyGameDataByConditionR%RRAR@tGetGiftItemListtupdateR=R R!R?R'R(t
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR/Rt ItemControlertGivePlayerItemt ItemGive_CTGRtGetPlayerPlatformtGetAccIDt GetNotifyKeyt!GetFlashGiftbagIDOrderInfoIpyDatatintt GetPayRMBNumt WorldNotifyt GetPlayerNamet GetMainItemIDR1(R t giftbagIDListt    addDRDictR3R5R    tactGiftbagTypetgiftbagIpyDataListtactGiftbagIDListtgiftbagIpyDataRRIRJRKRLt    needSpacet
emptySpacetitemIDt    itemCounttisBindtappIDt    notifyKeyt orderIpyDatatrmb((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pytOnPlayerOrderGiftbagpsl-*          +c
Csctjƒ}g|_|rsx|D]J}|jtj|ƒ}tjƒ}||_||_|jj    |ƒq"WnÊt
j ƒ}x»t |j ƒƒD]§}|j|ƒ}    |    jƒs¹q’n|r×|    jƒ|kr×q’n|    jƒ}|jtj|ƒ}|dkr q’ntjƒ}||_||_|jj    |ƒq’Wt|jƒ|_tj||ƒdS(Ni(tChPyNetSendPackttagMCFlashGiftbagPlayerInfot BuyCountListR R!R?ttagMCFlashGiftbagBuyCountt    GiftbagIDtBuyCountRARR:RR;R<R=R>R@RtCountt NetPackCommont SendFakePack(
R RBR    tgiftbagBuyInfotgiftIDtbuyCntt buyCountInfoRCRDRE((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR1²s6                            cCsŒtjjtjiƒ}|s"dS|jtjdƒ}|sAdSt||jtjdƒƒ}|sidStj    d|ƒ}|s…dS|j
ƒ}|j ƒ}t |ƒt |ƒkrÊt jd|ƒdSt j|jƒƒ}tjƒ}|jƒ|_|jƒ|_|jƒ|_g|_xLt|ƒD]>\}    }
tjƒ} |
| _||    | _|jj| ƒq.Wt |jƒ|_|j ƒ|_!|j"ƒ|_#g|_$xº|D]²} tj%di| d6t&t&ƒ} | sáq°ntj'ƒ}g|_(xG| D]?}|j)ƒ}t*||ƒ}tj+ƒ}||_,|s?dn    |j-ƒ|_.t |j.ƒ|_/|j0ƒ|_1|s{dnt2|j3ƒƒ|_4|j5ƒ|_6g|_7xo|j8ƒD]a\}}}tj9ƒ}||_:||_;||_<t2||j=ƒkƒ|_>|j7j|ƒqµWt |j7ƒ|_?|j(j|ƒqýWt |j(ƒ|_@|j$j|ƒq°Wt |j$ƒ|_AtBjC||ƒdS(NiRs%ÏÞʱÀñ°ü¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%sRGRHRM(DRRRRRRRR#RRtGetStartTimeListtGetEndTimeListRRtErrLogR[R\RtttagMCFlashGiftbagInfot GetStartDatet    StartDatet
GetEndDatetEndtDatetGetAdvanceMinutestAdvanceMinutest ActivityTimet    enumeratettagMCFlashGiftbagTimet    StartTimetEndtTimeRAtActivityTimeCountt GetIsDayResett
IsDayResetR.tLimitLVtGiftbagTypeInfoRQR%ttagMCFlashGiftbagTypet GiftbagInfoR@R^ttagMCFlashGiftbagtGiftIDt GetOrderInfot    OrderInfot OrderInfoLenR=t BuyCountLimitR_R`tRMBtGetOriginalRMBt RMBOriginaltItemInfoRRttagMCFlashGiftbagItemtItemIDt    ItemCounttIsBindRct
IsMainItemt GiftItemCountt GiftbagCounttGiftbagTypeCountR{R|(R R3RR    R9t startTimeListt endTimeListRotpackInfoRDt    startTimettimeInfot giftbagTypeRgtgiftTypet giftIpyDataRIRqtgiftBagRlRmRntitem((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR+Ñs~                              !                 cCs­d}tj|ƒ}|sši}tjƒ}xWt|jƒƒD]C}|j|ƒ}|jƒsgq@n|||jƒ|jƒf<q@Wtj||ƒn|j    ||fƒS(NtFlashGiftbagIDRMB(
Rt GetConfigExR:RtGetOrderInfoCounttGetOrderInfoByIndexR@tGetAppIDt SetConfigExR(RIRotkeytFlashGiftbagIDRMBDictRCRDR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR^#s   (RRR'RR{RtRORXRVRTRR!RR RR R&RsR1R+R^(((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyt<module>s(                
        
    %        B    R