cehua_wcy
2018-09-17 cc6a1e2c7b0d021252bd5394918b4928a65e4324
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
KŸ[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 &cCst|ƒ}|s‰tjjtjiƒ}|jtjƒr‰t|jtjdƒ|jtj    dƒƒ}t
|d|ƒt |ƒq‰ndS(NiR    ( t__CheckPlayerFlashGiftbagActiont
PyGameDatatg_operationActionDicttgett ShareDefinet OperationActionName_FlashGiftbagt ActKey_StateRt ActKey_CfgIDtActKey_DayIndextSyncFlashGiftbagBuyCounttSync_FlashGiftbagActionInfo(t    curPlayertisResettactInfoR    ((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.pytRefreshFlashGiftbagActionInfo5s c
CsÝ|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j ƒ}||krt ||jtj dƒƒ}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ÙntS(NisAÏÞʱÀñ°üÖØÖÃ! actID=%s,playerActID=%s,state=%s,giftbagTypeList=%ssÏÞʱÀñ°ü»î¶¯ID²»±ä£¬²»´¦Àí£¡Rs7    ·¢ËÍÐÂÏÞʱÀñ°üÓʼþÌáÐÑ! state=%s,playerMailState=%s(t GetPlayerIDR R RRRt    ActKey_IDRRtNomalDictGetPropertytChConfigtDef_PDict_FlashGiftbagIDRRtResetGiftbagItemBuyCountt PlayerControltNomalDictSetPropertytDef_PDict_FlashGiftbagMailStateRtDebugLogRRRt
GetMailKeytGetLVt
GetLVLimitt SendMailByKeytGetMailItemPrizetTrue(
RtplayerIDRtactIDtstateRt playerActIDR    tplayerMailStatetflashGiftbagIpyData((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR ?s,     *" 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*tappendR(RR    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(.R R RRRtDataRecordPackt DR_CTGErrorRRRRRRtGetIpyGameDataByConditionR2RR@R?tGetGiftItemListtupdateR<R%R&R>R)R*t
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR0R#t ItemControlertGivePlayerItemt ItemGive_CTGRtGetPlayerPlatformtGetAccIDt GetNotifyKeyt!GetFlashGiftbagIDOrderInfoIpyDatatintt GetPayRMBNumt WorldNotifyt GetPlayerNamet GetMainItemIDR(Rt giftbagIDListt    addDRDictRR5R    tactGiftbagTypetgiftbagIpyDataListtactGiftbagIDListtgiftbagIpyDataRRHRIRJRKt    needSpacet
emptySpacetitemIDt    itemCounttisBindtappIDt    notifyKeyt orderIpyDatatrmb((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pytOnPlayerOrderGiftbagqsl-*          +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    GiftbagIDtBuyCountR@RR9RR:R;R<R=R?RtCountt NetPackCommont SendFakePack(
RRAR    tgiftbagBuyInfotgiftIDtbuyCntt buyCountInfoRBRCRD((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR³s6                            cCs¯tjjtjiƒ}|s"dS|jtjƒs8dS|jtjdƒ}t|jtjdƒ|jtjdƒƒ}| sˆ| rŒdSt    j
d|ƒ}|s¨dS|j ƒ}|j ƒ}t |ƒt |ƒkrítjd|ƒdStj|jƒƒ}tjƒ}|jƒ|_|jƒ|_|jƒ|_g|_xLt|ƒD]>\}    }
tjƒ} |
| _||    | _|jj| ƒqQWt |jƒ|_ |j!ƒ|_"|j#ƒ|_$g|_%xº|D]²} t    j&di| d6t't'ƒ} | sqÓntj(ƒ}g|_)xG| D]?}|j*ƒ}t+||ƒ}tj,ƒ}||_-|sbdn    |j.ƒ|_/t |j/ƒ|_0|j1ƒ|_2|sždnt3|j4ƒƒ|_5|j6ƒ|_7g|_8xo|j9ƒD]a\}}}tj:ƒ}||_;||_<||_=t3||j>ƒkƒ|_?|j8j|ƒqØWt |j8ƒ|_@|j)j|ƒq Wt |j)ƒ|_A|j%j|ƒqÓWt |j%ƒ|_BtCjD||ƒdS(NiRs%ÏÞʱÀñ°ü¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%sRFRGRL(ER R RRRRRRRRRtGetStartTimeListtGetEndTimeListRRtErrLogRZR[RsttagMCFlashGiftbagInfot GetStartDatet    StartDatet
GetEndDatetEndtDatetGetAdvanceMinutestAdvanceMinutest ActivityTimet    enumeratettagMCFlashGiftbagTimet    StartTimetEndtTimeR@tActivityTimeCountt GetIsDayResett
IsDayResetR/tLimitLVtGiftbagTypeInfoRPR2ttagMCFlashGiftbagTypet GiftbagInfoR?R]ttagMCFlashGiftbagtGiftIDt GetOrderInfot    OrderInfot OrderInfoLenR<t BuyCountLimitR^R_tRMBtGetOriginalRMBt RMBOriginaltItemInfoRQttagMCFlashGiftbagItemtItemIDt    ItemCounttIsBindRbt
IsMainItemt GiftItemCountt GiftbagCounttGiftbagTypeCountRzR{(RRRR    R8t startTimeListt endTimeListRntpackInfoRCt    startTimettimeInfot giftbagTypeRftgiftTypet giftIpyDataRHRptgiftBagRkRlRmtitem((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 GetConfigExR9RtGetOrderInfoCounttGetOrderInfoByIndexR?tGetAppIDt SetConfigExR(RHRntkeytFlashGiftbagIDRMBDictRBRCR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR]!s   (R RR)RRzRsRNRWRURSRR&RRR"R R(RrRRR](((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyt<module>s(                
         
            B    O