cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
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
44
45
46
47
48
49
50
ö¾N\c@sÇddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    d„Z
d„Z d„Z d„Z d„Zd„Zd„Zd    d
„ZdS( iÿÿÿÿNcCs²|dks|dkrgStjd|ƒ}|s8gStj|jƒ|gƒ}|s]gS|t|ƒkry|dn||}|dt|ƒkr§||dn|dgS(Nit ActFlashSaleiÿÿÿÿi(t IpyGameDataPYtGetIpyGameDatat    GameWorldtGetDictValueByRangeKeytGetShopTypeListtlen(tcfgIDtdayIndextstatetwoldLVtipyDatat 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(RtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextGetIDR(t playerManagertindexR((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytRefreshflashSaleActionInfo1s c
Cs^|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|jtj    dƒ}|jtj
dƒ}|j t j dt jƒ}|j t jdt jƒ}    |j t jdt jƒ}
t} ||ksü||    kr-t} |ritjd|ƒ} tjƒjtjƒd} tj| jƒ| ƒ}tj|dt jƒ}nd}|
|kr›tjdƒ|jt jƒnt||||ƒ}|rÉt j!||ƒnt"j#|t j |t jƒt"j#|t j|t jƒtjd|||||    ||
f|ƒntjd|ƒ|rZt$|ƒ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_DayIndextActKey_WorldLVtNomalDictGetPropertytChConfigtDef_PDict_FlashSaleIDtDef_PDictType_FlashSaletDef_PDict_FlashSaleStatetDef_PDict_FlashSaleMailStatetFalsetTrueRRRt GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDaytGetOperationActionDateStrt GetStartDatetChangeTimeStrToNumtTYPE_Time_Format_DaytDebugLogtClearNomalDictRtFunctionNPCCommontResetShopItemBuyCountByShopTypet PlayerControltNomalDictSetPropertytSync_flashSaleActionInfotSync_FlashSaleAppointmentInfo(RtplayerIDtactInfotactIDR    RRR
t playerActIDtplayerActStatetplayerMailStatetisResettflashSaleIpyDatat openServerDayt    startDatet startTimeNumR ((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR<sB   ,
 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/R0R1t
GetEndDatetGetStartTimeListtGetEndTimeListtGetAdvanceMinutestdatetimetstrptimetTYPE_Time_Formatt    timedeltatGetCurrentTimetreplacet    GbkToCodetjoinR8t SendMailByKeyRtGetMailItemPrizeR2R3R9R4(RttickRAR=RRCtmailKeytLVLimitRDREtendDatet startTimeListt endTimeListtadvanceMinutest    startTimetendTimet curDateTimet    paramListRF((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytProcessFlashSaleMailhsH     7& 9%cCs¡tjjtjiƒ}|s"dS|jtjdƒ}|sAdStjd|ƒ}|s]dS|jtjdƒ}t    j
|j ƒ|gƒ}|j ƒ}|j ƒ}t|ƒt|ƒkrÒt    jd|ƒdS|jƒ}t    jƒjtjƒd}    tjƒ}
t    j|jƒ|    ƒ|
_t    j|jƒ|    ƒ|
_|jƒ|
_g|
_xLt|ƒD]>\} } tjƒ} | | _ || | _!|
jj"| ƒqaWt|
jƒ|
_#|j$ƒ|
_%|j&ƒ|
_'g|
_(xœt|ƒD]Ž\}}xt|ƒD]q\}}tj)di|d6t*t*ƒ}|s9qntj+ƒ}||_,||_-g|_.xî|D]æ}tj/ƒ}|j0ƒ|_1|j2ƒsšdn |j2ƒd|_3|j4ƒ|_5|j6ƒ|_7|j8ƒ|_9|j:ƒ|_;|j<ƒ}|j=ƒ}t>j?|||ƒ}||_@|jAƒ|_B|jCƒ|_D|j.j"|ƒqgWt|j.ƒ|_E|
j(j"|ƒqWqéWt|
j(ƒ|
_FtGjH||
ƒdS(NiRs%ÏÞʱÇÀ¹º¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%sitStoretShopType(IRRRRRR"RRR$RRRRNRORtErrLogtGetJobR-R.R/tChPyNetSendPackttagMCFlashSaleInfoR0R1t    StartDateRMtEndtDateRPtAdvanceMinutest ActivityTimet    enumeratettagMCFlashSaleTimet    StartTimetEndtTimetappendtActivityTimeCountt GetIsDayResett
IsDayResetRKtLimitLVtShopInfotGetIpyGameDataByConditionR,ttagMCFlashSaleShoptDayIndext    TimeIndext GiftbagInfottagMCFlashSaleGiftbagRtGiftIDt GetLimitCntt BuyCountLimittGetServerLimitCnttServerBuyCountLimitt GetMoneyTypet    MoneyTypet GetMoneyNumt MoneyNumbertGetMoneyOriginalt MoneyOriginalt    GetItemIDt
GetJobItemR6tGetShopJobItemtItemIDt
GetItemCntt    ItemCountt    GetIsBindtIsBindt GiftbagCountt    ShopCountt NetPackCommont SendFakePack(RR=RRCR
R R_R`tjobRDtpackInfotiRbttimeInfoRtshopListt    timeIndextshopTypetshopItemIpyDataListtshopt itemIpyDatatgiftBagtitemIDt jobItemListt    jobItemID((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR:‘sz                                 %      cCs“tjƒj|ƒ}|j}tjjtjiƒ}|s@dS|jtj    dƒ}|s_dSt
j |t j ||jt jƒt||ƒdS(Ni(RRRtGoodsIDRRRRRR"R8R9R&tDef_PDict_FlashSaleYYtStateR(R;(RtpackDataR[RtgoodsIDR=R((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytOnFlashSaleAppointmentäs    # icCs$tjjtjiƒ}|s"dS|jtjdƒ}|sAdStjd|ƒ}|s]dS|jtjdƒ}t    j
ƒ}g|_ |dkr¨d|_ t j|jƒ|gƒ}xDt|ƒD]Ý\}}    xÎt|    ƒD]À\}
} tjdi| d6ttƒ} | sqÝnx†tt| ƒƒD]r} |d|
d| }|jtj|dtjƒ}|r't    jƒ}||_d|_|j j|ƒq'q'WqÝWqÄWnVd|_ |jtj|dtjƒ}t    jƒ}||_||_|j j|ƒt|j ƒ|_tj||ƒdS(NiRiRgRhi'id( RRRRRR"RRR$RkttagMCFlashSaleAppointmentInfot    GoodsListtIsAllRRRRqR{R,RRR%R&R§R(ttagMCFlashSaleAppointmentStatet    GoodsMarkR¨Rut
GoodsCountR–R—(RRªR=RRCR
R™R RRœRRžRŸRšt    goodsMarkt isAppointmenttappoinetmentPack((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR;ósJ                   "             (RRR8RR6RkR–RR&RQRRRRRfR:R«R;(((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyt<module>s"                            ,    )    S