hxp
2018-08-11 f07b9021470bbff83cc73c03af4eb380db3fc891
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
bVn[c@sâddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zd„Zggd„Zd„Zd    „ZdS(
iÿÿÿÿNcCsot|ƒ}|sktjjtjiƒ}|jtjƒrkt|d|jtjgƒƒt    |ƒqkndS(NtgiftbagTypeList(
t__CheckPlayerFlashGiftbagActiont
PyGameDatatg_operationActionDicttgett ShareDefinet OperationActionName_FlashGiftbagt ActKey_StatetSyncFlashGiftbagBuyCounttActKey_GiftbagTypeListtSync_FlashGiftbagActionInfo(t    curPlayertisResettactInfo((sb.\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 ((sb.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pytRefreshFlashGiftbagActionInfo*s cCsì|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjgƒ}|j    t
j ƒ}||kr›t j d|jƒƒdStj|t
j |ƒt||ƒt j d||||f|ƒt|ƒtS(NisÏÞʱÀñ°ü»î¶¯ID²»±ä£¬²»´¦Àí£¡sAÏÞʱÀñ°üÖØÖÃ! actID=%s,playerActID=%s,state=%s,giftbagTypeList=%s(t GetPlayerIDRRRRRt    ActKey_IDRR    tNomalDictGetPropertytChConfigtDef_PDict_FlashGiftbagIDRtDebugLogt PlayerControltNomalDictSetPropertytResetGiftbagItemBuyCountR
tTrue(R tplayerIDR tactIDtstateRt playerActID((sb.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR4s    
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(t IpyGameDataPYtIPY_DataRtGetFlashGiftbagCounttGetFlashGiftbagByIndextGetBuyCountLimittGetGiftbagTypeRtDef_PDict_FlashGiftbagBuyCountt GetGiftbagIDRRRtappendR(R Rt
syncIDListt
ipyDataMgrtitgiftbagt    buyCntKey((sb.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR Os   c Csjtjjtjiƒ}|s5tj|d|ƒdStjjtjiƒ}|jtjdƒ}|stj|d|ƒdS|jtjgƒ}|s±tj|d|ƒdS|t    |ƒkrÍ|dn ||d}t
j di|d6t t ƒ}g}d}    x=|D]5}
|j|
jƒƒ|
jƒ|kr |
}    Pq q W|    sptj|d    |||f|ƒdS|    jƒ} |    jƒ} |ji| d
6| d 6ƒ|    jƒ} |jtj| ƒ}| r|ji| d 6|d 6ƒ|| krtj|d|| f|ƒdSntj|tj| |dƒ| r×t    | ƒ}tj|tj|ƒ}||kr‰tjd|jƒg| ƒq×xK| D]@\}}}tj||||tjgdtj t |gƒqWnt!j"|j#ƒƒ}|    j$ƒ}|rVt%| |ƒ}|sdnt&|j'ƒƒ}tj(d||j)ƒ||    j*ƒgƒnt+|| gƒt S(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_CTGErrorRR    tlenR&tGetIpyGameDataByConditionR!tNoneR.R-tGetGiftItemListtupdateR*RRR,RRt
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemt SendMailByKeyRt ItemControlertGivePlayerItemt ItemGive_CTGRtGetPlayerPlatformtGetAccIDt GetNotifyKeyt!GetFlashGiftbagIDOrderInfoIpyDatatintt GetPayRMBNumt WorldNotifyt GetPlayerNamet GetMainItemIDR(R t giftbagIDListt    addDRDictR R$RtactGiftbagTypetgiftbagIpyDataListtactGiftbagIDListtgiftbagIpyDatatipyDataR6R7R8R9t    needSpacet
emptySpacetitemIDt    itemCounttisBindtappIDt    notifyKeyt orderIpyDatatrmb((sb.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pytOnPlayerOrderGiftbagbsl*          +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 BuyCountListRRR,ttagMCFlashGiftbagBuyCountt    GiftbagIDtBuyCountR.R&R'RR(R)R*R+R-R>tCountt NetPackCommont SendFakePack(
R R/RtgiftbagBuyInfotgiftIDtbuyCntt buyCountInfoR0R1R2((sb.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR¤s6                            cCsˆtjjtjiƒ}|s"dS|jtjƒs8dS|jtjdƒ}|jtjdƒ}| sp| rtdStj    d|ƒ}|sdS|j
ƒ}|j ƒ}t |ƒt |ƒkrÕt jd|ƒdSt j|jƒƒ}tjƒ}|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,ƒ|_-|j.ƒ|_/|swdnt0|j1ƒƒ|_2|j3ƒ|_4g|_5xo|j6ƒD]a\}}}tj7ƒ}||_8||_9||_:t0||j;ƒkƒ|_<|j5j|ƒq±Wt |j5ƒ|_=|j&j|ƒqùWt |j&ƒ|_>|j"j|ƒq¬Wt |j"ƒ|_?t@jA||ƒdS(NitActFlashGiftbags%ÏÞʱÀñ°ü¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%sR4R5R:(BRRRRRRt ActKey_CfgIDR    R&tGetIpyGameDatatGetStartTimeListtGetEndTimeListR>RtErrLogRKRLRettagMCFlashGiftbagInfot GetStartDatet    StartDatet
GetEndDatetEndtDatet ActivityTimet    enumeratettagMCFlashGiftbagTimet    StartTimetEndtTimeR.tActivityTimeCountt GetIsDayResett
IsDayResett
GetLVLimittLimitLVtGiftbagTypeInfoR?R!ttagMCFlashGiftbagTypet GiftbagInfoR-RNttagMCFlashGiftbagtGiftIDt GetOrderInfot    OrderInfot OrderInfoLenR*t BuyCountLimitRORPtRMBtGetOriginalRMBt RMBOriginaltItemInfoRAttagMCFlashGiftbagItemtItemIDt    ItemCounttIsBindRSt
IsMainItemt GiftItemCountt GiftbagCounttGiftbagTypeCountRlRm(R R tcfgIDRtflashGiftbagIpyDatat startTimeListt endTimeListR`tpackInfoR1t    startTimettimeInfot giftbagTypeRWtgiftTypet giftIpyDataR6RbtgiftBagR]R^R_titem((sb.\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(
R&t GetConfigExR'RtGetOrderInfoCounttGetOrderInfoByIndexR-tGetAppIDt SetConfigExR(R6R`tkeytFlashGiftbagIDRMBDictR0R1RZ((sb.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyRNs   (RRRR&RlReR<RHRERCRRRRRR RdRR
RN(((sb.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyt<module>s&                
    
            B    N