cehua_hzl
2018-09-17 0e88a31eea65d64fb7bca33f60e9ca603dfef0c3
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
Ÿx›[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 cCs|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
ƒ}||kr†t j d|jƒƒdSt |jtjdƒ|jtjdƒƒ}tj|t    j
|ƒt||ƒt j d||||f|ƒt|ƒtS(NisÏÞʱÀñ°ü»î¶¯ID²»±ä£¬²»´¦Àí£¡sAÏÞʱÀñ°üÖØÖÃ! actID=%s,playerActID=%s,state=%s,giftbagTypeList=%s(t GetPlayerIDR R RRRt    ActKey_IDRtNomalDictGetPropertytChConfigtDef_PDict_FlashGiftbagIDRtDebugLogRRRt PlayerControltNomalDictSetPropertytResetGiftbagItemBuyCountRtTrue(RtplayerIDRtactIDtstatet playerActIDR    ((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+Xs   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_CTGErrorRRRRRRtGetIpyGameDataByConditionR,RR8R7tGetGiftItemListtupdateR4R%R&R6R)R*t
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemt SendMailByKeyR#t ItemControlertGivePlayerItemt ItemGive_CTGRtGetPlayerPlatformtGetAccIDt GetNotifyKeyt!GetFlashGiftbagIDOrderInfoIpyDatatintt GetPayRMBNumt WorldNotifyt GetPlayerNamet GetMainItemIDR(Rt giftbagIDListt    addDRDictRR/R    tactGiftbagTypetgiftbagIpyDataListtactGiftbagIDListtgiftbagIpyDataRR@RARBRCt    needSpacet
emptySpacetitemIDt    itemCounttisBindtappIDt    notifyKeyt orderIpyDatatrmb((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pytOnPlayerOrderGiftbagksl-*          +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&R6ttagMCFlashGiftbagBuyCountt    GiftbagIDtBuyCountR8RR1RR2R3R4R5R7RtCountt NetPackCommont SendFakePack(
RR9R    tgiftbagBuyInfotgiftIDtbuyCntt buyCountInfoR:R;R<((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ƒ|_g|_xLt|ƒD]>\}    }
tjƒ} |
| _||    | _|jj| ƒqBWt |jƒ|_|jƒ|_ |j!ƒ|_"g|_#xº|D]²} t    j$di| d6t%t%ƒ} | sõqÄntj&ƒ}g|_'xG| D]?}|j(ƒ}t)||ƒ}tj*ƒ}||_+|sSdn    |j,ƒ|_-t |j-ƒ|_.|j/ƒ|_0|sdnt1|j2ƒƒ|_3|j4ƒ|_5g|_6xo|j7ƒD]a\}}}tj8ƒ}||_9||_:||_;t1||j<ƒkƒ|_=|j6j|ƒqÉWt |j6ƒ|_>|j'j|ƒqWt |j'ƒ|_?|j#j|ƒqÄWt |j#ƒ|_@tAjB||ƒdS(NiRs%ÏÞʱÀñ°ü¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%sR>R?RD(CR R RRRRRRRRRtGetStartTimeListtGetEndTimeListRRtErrLogRSRTRlttagMCFlashGiftbagInfot GetStartDatet    StartDatet
GetEndDatetEndtDatet ActivityTimet    enumeratettagMCFlashGiftbagTimet    StartTimetEndtTimeR8tActivityTimeCountt GetIsDayResett
IsDayResett
GetLVLimittLimitLVtGiftbagTypeInfoRHR,ttagMCFlashGiftbagTypet GiftbagInfoR7RVttagMCFlashGiftbagtGiftIDt GetOrderInfot    OrderInfot OrderInfoLenR4t BuyCountLimitRWRXtRMBtGetOriginalRMBt RMBOriginaltItemInfoRIttagMCFlashGiftbagItemtItemIDt    ItemCounttIsBindR[t
IsMainItemt GiftItemCountt GiftbagCounttGiftbagTypeCountRsRt(RRRR    tflashGiftbagIpyDatat startTimeListt endTimeListRgtpackInfoR;t    startTimettimeInfot giftbagTypeR_tgiftTypet giftIpyDataR@RitgiftBagRdReRftitem((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 GetConfigExR1RtGetOrderInfoCounttGetOrderInfoByIndexR7tGetAppIDt SetConfigExR(R@RgtkeytFlashGiftbagIDRMBDictR:R;R((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyRVs   (R RR)RRsRlRFRPRMRKRR&RRR"R R+RkRRRV(((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyt<module>s(                
         
            B    N