cehua_ZWJ
2019-01-07 bc42e044cf0e891ee9651ab27abc306272ada1cb
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
ÂFå[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%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 RRRRKRLRRtErrLogR*R+R,tChPyNetSendPackttagMCFlashSaleInfoR-R.t    StartDateRJtEndtDateRMtAdvanceMinutest ActivityTimet    enumeratettagMCFlashSaleTimet    StartTimetEndtTimetappendtActivityTimeCountt GetIsDayResett
IsDayResetRHtLimitLVtShopInfotGetIpyGameDataByConditionR)ttagMCFlashSaleShoptDayIndext    TimeIndext GiftbagInfottagMCFlashSaleGiftbagRtGiftIDt GetLimitCntt BuyCountLimittGetServerLimitCnttServerBuyCountLimitt GetMoneyTypet    MoneyTypet GetMoneyNumt MoneyNumbertGetMoneyOriginalt MoneyOriginalt    GetItemIDtItemIDt
GetItemCntt    ItemCountt    GetIsBindtIsBindt GiftbagCountt    ShopCountt NetPackCommont SendFakePack(R R:RR@R    R\R]RAtpackInfotiR_ttimeInfoRtshopListt    timeIndextshopTypetshopItemIpyDataListtshopt itemIpyDatatgiftBag((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR7Žsp                                 %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 RRRgttagMCFlashSaleAppointmentInfot    GoodsListtIsAllRRmRwR)RRR"R#RR%ttagMCFlashSaleAppointmentStatet    GoodsMarkRžRqt
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                    "             (RRR5RR3RgRRR#RNRR RR RcR7R¡R8(((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyt<module>s"                            +    )    O