cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
Íþ7\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
CsF|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|jtj    dƒ}|j
t j dt j ƒ}|j
t jdt j ƒ}|j
t jdt j ƒ}    t}
||ksç||krt}
|rTtjd|ƒ} tjƒjtjƒd} tj| jƒ| ƒ} tj| dt jƒ}nd}|    |kr†tjdƒ|jt j ƒnt|||ƒ}|r±tj ||ƒnt!j"|t j |t j ƒt!j"|t j|t j ƒtjd|||||||    f|ƒntjd|ƒ|rBt#|ƒt$|ƒn|
S(NiRit
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_FlashSaleMailStatetFalsetTrueRRRt GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDaytGetOperationActionDateStrt GetStartDatetChangeTimeStrToNumtTYPE_Time_Format_DaytDebugLogtClearNomalDictRtFunctionNPCCommontResetShopItemBuyCountByShopTypet PlayerControltNomalDictSetPropertytSync_flashSaleActionInfotSync_FlashSaleAppointmentInfo(R tplayerIDtactInfotactIDRRRt playerActIDtplayerActStatetplayerMailStatetisResettflashSaleIpyDatat openServerDayt    startDatet startTimeNumR    ((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR :s@   ,
 cCs‰tj|tj|ƒsdS|jtjdtjƒ}|rAdStjj    t
j iƒ}|scdS|j    t
j dƒ}|s‚dSt jd|ƒ}|sždS|jƒ}|jƒ}| sÏ|jƒ|krÓdStjƒjt
jƒd}tj|jƒ|ƒ}    tj|jƒ|ƒ}
|jƒ} |jƒ} | sE| rIdS|jƒ} tjjd|    | dftjƒtjd| ƒ}tjjd|
| dftjƒ}tjƒ}||koÕ|knr…|    j ddƒ|
j ddƒtj!d    ƒj"| ƒg}t#j$||j%ƒg|j&ƒ|ƒtj'|    d
tj(ƒ}t#j)|tj|tjƒtj*d |j%ƒƒndS( NiRis%s %s:00tminutesiÿÿÿÿs-s/s¡¢Rs    ·¢ËÍÐÂÏÞʱÇÀ¹ºÓʼþÌáÐÑ!(+RtSetPlayerTickTimeR#tTYPE_Player_Tick_FlashSaleR"R'R%RRRRRR RRt
GetMailKeyt
GetLVLimittGetLVR*R+R,R-R.t
GetEndDatetGetStartTimeListtGetEndTimeListtGetAdvanceMinutestdatetimetstrptimetTYPE_Time_Formatt    timedeltatGetCurrentTimetreplacet    GbkToCodetjoinR5t SendMailByKeyRtGetMailItemPrizeR/R0R6R1(R ttickR>R:RR@tmailKeytLVLimitRARBtendDatet startTimeListt endTimeListtadvanceMinutest    startTimetendTimet curDateTimet    paramListRC((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytProcessFlashSaleMailesH     7& 9%cCs}tjjtjiƒ}|s"dS|jtjdƒ}|sAdStjd|ƒ}|s]dS|jƒ}|j    ƒ}|j
ƒ}t |ƒt |ƒkr®t j d|ƒdS|jƒ}t jƒjtjƒd}tjƒ}    t j|jƒ|ƒ|    _t j|jƒ|ƒ|    _|jƒ|    _g|    _xLt|ƒD]>\}
} tjƒ} | | _||
| _|    jj | ƒq=Wt |    jƒ|    _!|j"ƒ|    _#|j$ƒ|    _%g|    _&xœt|ƒD]Ž\} }xt|ƒD]q\}}tj'di|d6t(t(ƒ}|sqÞntj)ƒ}| |_*||_+g|_,xî|D]æ}tj-ƒ}|j.ƒ|_/|j0ƒsvdn |j0ƒd|_1|j2ƒ|_3|j4ƒ|_5|j6ƒ|_7|j8ƒ|_9|j:ƒ}|j;ƒ}t<j=|||ƒ}||_>|j?ƒ|_@|jAƒ|_B|j,j |ƒqCWt |j,ƒ|_C|    j&j |ƒqÞWqÅWt |    j&ƒ|    _DtEjF||    ƒdS(NiRs%ÏÞʱÇÀ¹º¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%sitStoretShopType(GRRRRRR RRRRKRLRRtErrLogtGetJobR*R+R,tChPyNetSendPackttagMCFlashSaleInfoR-R.t    StartDateRJtEndtDateRMtAdvanceMinutest ActivityTimet    enumeratettagMCFlashSaleTimet    StartTimetEndtTimetappendtActivityTimeCountt GetIsDayResett
IsDayResetRHtLimitLVtShopInfotGetIpyGameDataByConditionR)ttagMCFlashSaleShoptDayIndext    TimeIndext GiftbagInfottagMCFlashSaleGiftbagRtGiftIDt GetLimitCntt BuyCountLimittGetServerLimitCnttServerBuyCountLimitt GetMoneyTypet    MoneyTypet GetMoneyNumt MoneyNumbertGetMoneyOriginalt MoneyOriginalt    GetItemIDt
GetJobItemR3tGetShopJobItemtItemIDt
GetItemCntt    ItemCountt    GetIsBindtIsBindt GiftbagCountt    ShopCountt NetPackCommont SendFakePack(R R:RR@R    R\R]tjobRAtpackInfotiR_ttimeInfoRtshopListt    timeIndextshopTypetshopItemIpyDataListtshopt itemIpyDatatgiftBagtitemIDt jobItemListt    jobItemID((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR7Žsx                                  %      cCs“tjƒj|ƒ}|j}tjjtjiƒ}|s@dS|jtj    dƒ}|s_dSt
j |t j ||jt jƒt||ƒdS(Ni(RRRtGoodsIDRRRRRR R5R6R#tDef_PDict_FlashSaleYYtStateR%R8(RtpackDataRXR tgoodsIDR:R((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(NiRiRdRei'id(RRRRRR RRRhttagMCFlashSaleAppointmentInfot    GoodsListtIsAllRRnRxR)RRR"R#R¤R%ttagMCFlashSaleAppointmentStatet    GoodsMarkR¥Rrt
GoodsCountR“R”(R R§R:RR@R–R    RR™RšR›RœR—t    goodsMarkt isAppointmenttappoinetmentPack((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR8ïsH                    "             (RRR5RR3RhR“RR#RNRR RR RcR7R¨R8(((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyt<module>s"                            +    )    R