cehua_wcy
2018-10-29 aa9d41680c60795b199ecb1051bce053a0cd3bb7
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
‹ŒÅ[c@sÇddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    d„Z
d„Z d„Z d„Z d„Zd„Zd„Zd    d
„ZdS( iÿÿÿÿNcCs™|dks|dkrgStjd|ƒ}|s8gS|jƒ}|t|ƒkr`|dn||}|dt|ƒkrŽ||dn|dgS(Nit ActFlashSaleiÿÿÿÿi(t IpyGameDataPYtGetIpyGameDatatGetShopTypeListtlen(tcfgIDtdayIndextstatetipyDatat shopTypeListttodayShopTypeList((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyRs &cCst|ƒdS(N(t__CheckPlayerflashSaleAction(t    curPlayer((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyt OnPlayerLogin*s
cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}|jƒdkrLqnt|ƒqWdS(Ni(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextGetIDR (t playerManagertindexR ((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytRefreshflashSaleActionInfo/s c
Cs|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|jtj    dƒ}|j
t j dt j ƒ}|j
t jdt j ƒ}|j
t jdt j ƒ}    t}
||ksç||krít}
|r,tjd|ƒ} | jƒ} tj| dt jƒ} nd} |    | kr^tjdƒ|jt j ƒnt|||ƒ}|r‰tj||ƒntj|t j |t j ƒtj|t j|t j ƒtjd|||||||    f|ƒntjd|ƒ|rt|ƒt |ƒn|
S(NiRt
timeFormats    ÏÞʱÇÀ¹º»î¶¯ÖØÖÃ!ssÏÞʱÇÀ¹ºµ¥³¡ÖØÖÃ! actID=%s,playerActID=%s,dayIndex=%s,state=%s,playerActState=%s,shopTypeList=%s,playerMailState=%ssÏÞʱÇÀ¹º»î¶¯ID²»±ä£¬²»´¦Àí£¡(!t GetPlayerIDt
PyGameDatatg_operationActionDicttgett ShareDefinetOperationActionName_FlashSalet    ActKey_IDt ActKey_Statet ActKey_CfgIDtActKey_DayIndextNomalDictGetPropertytChConfigtDef_PDict_FlashSaleIDtDef_PDictType_FlashSaletDef_PDict_FlashSaleStatetDef_PDict_FlashSaleMailStatetFalsetTrueRRt GetStartDateRtChangeTimeStrToNumtTYPE_Time_Format_DaytDebugLogtClearNomalDictRtFunctionNPCCommontResetShopItemBuyCountByShopTypet PlayerControltNomalDictSetPropertytSync_flashSaleActionInfotSync_FlashSaleAppointmentInfo(R tplayerIDtactInfotactIDRRRt playerActIDtplayerActStatetplayerMailStatetisResettflashSaleIpyDatat    startDatet startTimeNumR    ((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR :s>    ,
 cCsUtj|tj|ƒsdS|jtjdtjƒ}|rAdStjj    t
j iƒ}|scdS|j    t
j dƒ}|s‚dSt jd|ƒ}|sždS|jƒ}|jƒ}| sÏ|jƒ|krÓdS|jƒ}|jƒ}    |jƒ}
|jƒ} |
s| rdS|jƒ} tjjd||
dftjƒtjd| ƒ} tjjd|    | dftjƒ}tjƒ}| |ko¡|knrQ|jddƒ|    jddƒtjdƒj|
ƒg}tj ||j!ƒg|j"ƒ|ƒtj#|d    tj$ƒ}tj%|tj|tjƒtj&d
|j!ƒƒndS( NiRs%s %s:00tminutesiÿÿÿÿs-s/s¡¢Rs    ·¢ËÍÐÂÏÞʱÇÀ¹ºÓʼþÌáÐÑ!('RtSetPlayerTickTimeR#tTYPE_Player_Tick_FlashSaleR"R'R%RRRRRR RRt
GetMailKeyt
GetLVLimittGetLVR*t
GetEndDatetGetStartTimeListtGetEndTimeListtGetAdvanceMinutestdatetimetstrptimetTYPE_Time_Formatt    timedeltatGetCurrentTimetreplacet    GbkToCodetjoinR1t SendMailByKeyRtGetMailItemPrizeR+R,R2R-(R ttickR:R6RR<tmailKeytLVLimitR=tendDatet startTimeListt endTimeListtadvanceMinutest    startTimetendTimet curDateTimet    paramListR>((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytProcessFlashSaleMaildsF       7& 9%cCsJtjjtjiƒ}|s"dS|jtjdƒ}|sAdStjd|ƒ}|s]dS|jƒ}|j    ƒ}|j
ƒ}t |ƒt |ƒkr®t j d|ƒdSt jƒjtjƒd}tjƒ}t j|jƒ|ƒ|_t j|jƒ|ƒ|_|jƒ|_g|_xLt|ƒD]>\}    }
tjƒ} |
| _||    | _|jj| ƒq1Wt |jƒ|_ |j!ƒ|_"|j#ƒ|_$g|_%xut|ƒD]g\} } xXt| ƒD]J\}}tj&di|d6t't'ƒ}|s    qÒntj(ƒ}| |_)||_*g|_+xÇ|D]¿}tj,ƒ}|j-ƒ|_.|j/ƒsjdn |j/ƒd|_0|j1ƒ|_2|j3ƒ|_4|j5ƒ|_6|j7ƒ|_8|j9ƒ|_:|j;ƒ|_<|j=ƒ|_>|j+j|ƒq7Wt |j+ƒ|_?|j%j|ƒqÒWq¹Wt |j%ƒ|_@tAjB||ƒdS(NiRs%ÏÞʱÇÀ¹º¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%sitStoretShopType(CRRRRRR RRRRFRGRRtErrLogt GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDaytChPyNetSendPackttagMCFlashSaleInfotGetOperationActionDateStrR*t    StartDateREtEndtDateRHtAdvanceMinutest ActivityTimet    enumeratettagMCFlashSaleTimet    StartTimetEndtTimetappendtActivityTimeCountt GetIsDayResett
IsDayResetRCtLimitLVtShopInfotGetIpyGameDataByConditionR)ttagMCFlashSaleShoptDayIndext    TimeIndext GiftbagInfottagMCFlashSaleGiftbagRtGiftIDt GetLimitCntt BuyCountLimittGetServerLimitCnttServerBuyCountLimitt GetMoneyTypet    MoneyTypet GetMoneyNumt MoneyNumbertGetMoneyOriginalt MoneyOriginalt    GetItemIDtItemIDt
GetItemCntt    ItemCountt    GetIsBindtIsBindt GiftbagCountt    ShopCountt NetPackCommont SendFakePack(R R6RR<R    RWRXt openServerDaytpackInfotiRZttimeInfoRtshopListt    timeIndextshopTypetshopItemIpyDataListtshopt itemIpyDatatgiftBag((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR3Œsp                                 %cCs“tjƒj|ƒ}|j}tjjtjiƒ}|s@dS|jtj    dƒ}|s_dSt
j |t j ||jt jƒt||ƒdS(Ni(RRRtGoodsIDRRRRRR R1R2R#tDef_PDict_FlashSaleYYtStateR%R4(RtpackDataRSR tgoodsIDR6R((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytOnFlashSaleAppointmentÛs    # icCstjjtjiƒ}|s"dS|jtjdƒ}|sAdStjd|ƒ}|s]dStj    ƒ}g|_
|dkr„d|_ |j ƒ}xDt |ƒD]Ý\}}xÎt |ƒD]À\}    }
tjdi|
d6ttƒ} | sðq¹nx†tt| ƒƒD]r} |d|    d| } |jtj| dtjƒ}|rtjƒ}| |_d|_|j
j|ƒqqWq¹Wq WnVd|_ |jtj|dtjƒ}tjƒ}||_||_|j
j|ƒt|j
ƒ|_tj||ƒdS(NiRiR_R`i'id(RRRRRR RRRettagMCFlashSaleAppointmentInfot    GoodsListtIsAllRRlRvR)RRR"R#RR%ttagMCFlashSaleAppointmentStatet    GoodsMarkRžRpt
GoodsCountRR(R R R6RR<R’R    RR•R–R—R˜R“t    goodsMarkt isAppointmenttappoinetmentPack((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR4êsH                    "             (RRR1RR/ReRRR#RIRR RR R^R3R¡R4(((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyt<module>s"                            *    (    O