hwj35
2025-06-23 aa0f971ae9a59f0fd98d57b6c1d1663a270be92c
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
¤9gc@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z d„Z d„Zd„Zd„Zd„Zd„Zd„Zggd    „Zd
„Zd „ZdS( iÿÿÿÿNcCs}|dks|dkrgStjd|ƒ}|s8gStj|jƒ|gƒ}|t|ƒkro|dn||}|S(NtActFlashGiftbagiÿÿÿÿ(tNonet IpyGameDataPYtGetIpyGameDatat    GameWorldtGetDictValueByRangeKeytGetGiftbagTypeListtlen(tcfgIDtdayIndextwoldLVtipyDatatgiftbagTypeListt todayGiftbag((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR!s&cCsZxStjjtjiƒjƒD]3}|jtjdƒ}t||ƒ}|sqqWdS(Ni(t
PyGameDatatg_operationActionDicttgett ShareDefinet OperationActionName_FlashGiftbagtvaluest ActKey_ActNumt__CheckPlayerFlashGiftbagAction(t    curPlayertactInfotactNumtisReset((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyt OnPlayerLogin+s %cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(RtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(Rt playerManagertindexR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pytRefreshFlashGiftbagActionInfo5s c
Csd|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j |ƒ}|s‚gn-t ||jtj dƒ|jtjdƒƒ}t}    ||krAt}    t||ƒt|||ƒtj|t
j ||ƒtj|t
j|dƒtjd|||||f|ƒn tjd||f|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`t||ƒ|r`t||d|ƒq`n|    S(NisKÏÞʱÀñ°üÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,state=%s,giftbagTypeList=%ss4ÏÞʱÀñ°ü»î¶¯ID²»±ä£¬²»´¦Àí£¡actNum=%s,playerActID=%sRs7    ·¢ËÍÐÂÏÞʱÀñ°üÓʼþÌáÐÑ! state=%s,playerMailState=%sR (t GetPlayerIDRt
GetActInfoRRRt    ActKey_IDt ActKey_Statet ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_FlashGiftbagIDRtActKey_DayIndextActKey_WorldLVtFalsetTruetSync_FlashGiftbagActionInfot__ResetGiftbagItemBuyCountt PlayerControltNomalDictSetPropertytDef_PDict_FlashGiftbagMailStatetDebugLogRRt
GetMailKeytGetLVt
GetLVLimitt SendMailByKeytGetMailItemPrizetSyncFlashGiftbagBuyCount( RRtplayerIDRtactIDtstateRt playerActIDR RtplayerMailStatetflashGiftbagIpyData((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    ƒf}|j
|ƒdkr˜q%nt j ||dƒ|j |j    ƒƒq%W|rÛt|||ƒndS(Ni(RtIPY_DataRtGetFlashGiftbagCounttGetFlashGiftbagByIndextGetBuyCountLimittGetGiftbagTypeR)tDef_PDict_FlashGiftbagBuyCountt GetGiftbagIDR(R1R2tappendR:(RR Rt
syncIDListt
ipyDataMgrtitgiftbagt    buyCntKey((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR0es   c    Csôt}xÊtjjtjiƒjƒD]ª}|jtjdƒ}|jtjdƒ}|saq%n|jtj    dƒ}t
||jtj dƒ|jtj dƒƒ}|s²q%n|t |ƒkrÎ|dn ||d}    tjdi|    d6ttƒ}
g} d} x=|
D]5} | j| jƒƒ| jƒ|kr| } PqqW| sSq%ntjd|ƒ}|sqq%n|jƒ}|ròxl|
D]a} | jƒ}|jtj||fƒ}||krŠ|dkrŠtj|d||ƒdSqŠWn| jƒ}t| jƒ|jƒƒ}|ji|d6|d    6ƒ| jƒ}|jtj||fƒ}|r­|ji|d
6|d 6ƒ||kr­t j!|d ||f|ƒdSnt"j#|tj||f|dƒ|rÿt$j%||d dtj&t|gƒnt'j(|ƒ}| j)ƒ}|rxt*||ƒ}|s;dnt+|j,ƒƒ}t"j-d||j.ƒ|| j/ƒgƒnt0|||gƒt1j2|tj3|    tƒt}t'j4d||    ||d|fƒPq%W|sðtj|d|ƒdStS(Niiÿÿÿÿit FlashGiftbagt GiftbagTypeRsEFlashGiftbag JueBan pay limit! have already bought other giftbagID=%st    giftbagIDt giftItemListt buyCountLimittbuyCounts:FlashGiftbag Pay count limit !buyCount=%s,buyCountLimit=%stteventt0sR    ¹ºÂòÏÞʱÀñ°ü: actNum=%s,actGiftbagType=%s,giftbagID=%s,buyCount=%s,isJueban=%ssFlashGiftbag can not buy!(5R-RRRRRRRR&R'RR+R,RRtGetIpyGameDataByConditionR.RRHRGRt GetIsJuebanR(R)RFtDataRecordPackt DR_CTGErrort__GetJobItemListtGetGiftItemListtGetJobtupdateRDt
PlayerCointExchangePayCoinR1R2t ItemControlertGivePlayerItemOrMailt ItemGive_CTGRtGetPlayerPlatformt GetNotifyKeyt!GetFlashGiftbagIDOrderInfoIpyDatatstrt GetPayRMBNumt WorldNotifyt GetPlayerNamet GetMainItemIDR:tPlayerWeekPartytAddWeekPartyActionCnttDef_WPAct_GiftBagR4(Rt giftbagIDListt    addDRDicttcanBuyRRR=RR tactGiftbagTypetgiftbagIpyDataListtactGiftbagIDListtgiftbagIpyDataR R@tisJuebantjuebanGiftbagIDtjuebanBuyCountRPRQRRRStappIDt    notifyKeyt orderIpyDatatrmb((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pytOnPlayerOrderGiftbagxs|%0*         $( +    cCsxg}xk|D]c\}}}t|ƒtkrG|j|||gƒq ||kr |j||||gƒq q W|S(N(ttypetintRH(titemListtjobt jobItemListtitemIDtitemCnttisBind((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR[Çs !c Csxtjƒ}||_g|_|r‚x+|D]P}|jtj||fƒ}tjƒ}||_||_    |jj
|ƒq+WnÐt j ƒ}xÁt |jƒƒD]­}    |j|    ƒ}
|
jƒsÈq¡n|ræ|
jƒ|kræq¡n|
jƒ}|jtj||fƒ}|dkr q¡ntjƒ}||_||_    |jj
|ƒq¡Wt|jƒ|_tj||ƒdS(Ni(tChPyNetSendPackttagMCFlashGiftbagPlayerInfotActNumt BuyCountListR(R)RFttagMCFlashGiftbagBuyCountt    GiftbagIDtBuyCountRHRRARRBRCRDRERGRtCountt NetPackCommont SendFakePack( RRRIR tgiftbagBuyInfotgiftIDtbuyCntt buyCountInfoRJRKRL((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR:Ðs8                                cCsÂtjtj|ƒ}|sdS|jtjdƒ}|s>dSt||jtjdƒ|jtjdƒƒ}|sxdSt    j
d|ƒ}|s”dS|j ƒ}|j ƒ}t |ƒt |ƒkrÙtjd|ƒdStj|ƒ}tj|ƒ\}    }
tjƒ} || _|    | _|
| _|jƒ| _g| _xLt|ƒD]>\} } tjƒ}| |_|| |_| jj|ƒqIWt | jƒ| _|jƒ| _ |j!ƒ| _"g| _#xÕ|D]Í}t    j$di|d6t%t%ƒ}|süqËntj&ƒ}g|_'xb|D]Z}|j(ƒ}t)||ƒ}tj*ƒ}||_+|sZdn    |j,ƒ|_-t |j-ƒ|_.|j/ƒ|_0|s–dnt1j2|j3ƒƒ|_4t1j2|j5ƒƒ|_6g|_7x~t8|j9ƒ|j:ƒƒD]a\}}}tj;ƒ}||_<||_=||_>t?||j@ƒkƒ|_A|j7j|ƒqëWt |j7ƒ|_B|j'j|ƒqWt |j'ƒ|_C| j#j|ƒqËWt | j#ƒ| _DtEjF|| ƒdS(NiRs%ÏÞʱÀñ°ü¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%sRNRORT(GRR$RRRR'RR+R,RRtGetStartTimeListtGetEndTimeListRtErrLogRdtGetOperationActionDateStrR†ttagMCFlashGiftbagInfoRˆt    StartDatetEndtDatetGetAdvanceMinutestAdvanceMinutest ActivityTimet    enumeratettagMCFlashGiftbagTimet    StartTimetEndtTimeRHtActivityTimeCountt GetIsDayResett
IsDayResetR7tLimitLVtGiftbagTypeInfoRWR.ttagMCFlashGiftbagTypet GiftbagInfoRGRfttagMCFlashGiftbagtGiftIDt GetOrderInfot    OrderInfot OrderInfoLenRDt BuyCountLimittCommFunct    RMBToCoinRhtRMBtGetOriginalRMBt RMBOriginaltItemInfoR[R\R]ttagMCFlashGiftbagItemtItemIDt    ItemCounttIsBindRRkt
IsMainItemt GiftItemCountt GiftbagCounttGiftbagTypeCountRŽR(RRRRR R@t startTimeListt endTimeListRyt startDateStrt
endDateStrtpackInfoRKt    startTimettimeInfot giftbagTypeRstgiftTypet giftIpyDataRPR{tgiftBagRƒt    itemCountR…titem((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR/ðs‚0                                          $    +             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 GetConfigExRARtGetOrderInfoCounttGetOrderInfoByIndexRGtGetAppIDt SetConfigExR(RPRytkeytFlashGiftbagIDRMBDictRJRKR ((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyRfDs   (RRR1RRŽR†RYRaRlRR)R¯R_RRR"RR0R}R[R:R/Rf(((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyt<module>s,                 
    
    
    &        O             T