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
44
¤9gc@sÙddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    d„Z
d„Z d„Z d„Z d„Zd„Zd„Zd    „Zd
„Zd d „ZdS( iÿÿÿÿNcCsP|d}|tjkr tjS|tjkr6tjS|tjkrLtjSdS(sŠ»ñÈ¡»î¶¯·Ö×é±àºÅ¶ÔÓ¦µÄ×ÖµäÀàÐÍ
    ÒòΪ±¾¹¦ÄÜÓÃÁË ClearNomalDict ²»Í¬µÄ»î¶¯·Ö×鱨Ðë²»Ò»ÑùµÄ×ÖµäÀàÐÍ£¬²»ÄÜ¿ÉÄܵ¼Ö²»Í¬»î¶¯·Ö×éÊý¾ÝÒì³£
    i
i(t ShareDefinetActType_OpenCommtChConfigtDef_PDictType_FlashSaletActType_MixServertDef_PDictType_FlashSaleMixt ActType_FeasttDef_PDictType_FlashSaleFeast(tactNumtactType((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytGetActNumDictTypes
cCs²|dks|dkrgStjd|ƒ}|s8gStj|jƒ|gƒ}|s]gS|t|ƒkry|dn||}|dt|ƒkr§||dn|dgS(Nit ActFlashSaleiÿÿÿÿi(t IpyGameDataPYtGetIpyGameDatat    GameWorldtGetDictValueByRangeKeytGetShopTypeListtlen(tcfgIDtdayIndextstatetwoldLVtipyDatat shopTypeListttodayShopTypeList((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyR+s&cCsOxHtjjtjiƒjƒD](}|jtjdƒ}t||ƒqWdS(Ni(t
PyGameDatatg_operationActionDicttgetRtOperationActionName_FlashSaletvaluest ActKey_ActNumt__CheckPlayerflashSaleAction(t    curPlayertactInfoR((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyt OnPlayerLogin8s%cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(RtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(Rt playerManagertindexR ((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytRefreshflashSaleActionInfo@s c Csw|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|jtj    dƒ}|jtj
dƒ}t |ƒ}    |j t j|d|    ƒ}
|j t j|d|    ƒ} |j t j|d|    ƒ} t} ||
ks|| kr3t} |r`tjd|ƒ}|s0dStj|ƒ\}}tj|dt jƒ}nd}| |krœtjd||    f|ƒ|j|    ƒnt||||ƒ}|rÊtj||ƒntj|t j|||    ƒtj|t j|||    ƒtjd|||
||| || f|ƒntjd|||f|ƒ|rst||ƒt ||ƒn| S(NiR t
timeFormats(    ÏÞʱÇÀ¹º»î¶¯ÖØÖÃ! actNum=%s,dType=%ss}ÏÞʱÇÀ¹ºµ¥³¡ÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,dayIndex=%s,state=%s,playerActState=%s,shopTypeList=%s,playerMailState=%ss7ÏÞʱÇÀ¹º»î¶¯ID²»±ä£¬²»´¦Àí£¡actNum=%s,actID=%s,state=%s(!t GetPlayerIDRt
GetActInfoRRRt    ActKey_IDt ActKey_Statet ActKey_CfgIDtActKey_DayIndextActKey_WorldLVR
tNomalDictGetPropertyRtDef_PDict_FlashSaleIDtDef_PDict_FlashSaleStatetDef_PDict_FlashSaleMailStatetFalsetTrueR R tGetOperationActionDateStrtChangeTimeStrToNumtTYPE_Time_Format_DaytDebugLogtClearNomalDictRtFunctionNPCCommontResetShopItemBuyCountByShopTypet PlayerControltNomalDictSetPropertytSync_flashSaleActionInfotSync_FlashSaleAppointmentInfo(R RtplayerIDR!tactIDRRRRtdTypet playerActIDtplayerActStatetplayerMailStatetisResettflashSaleIpyDatat    startDatet_t startTimeNumR((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyRKsF   / cCsóxÛtjjtjiƒjƒD]»}|jtjdƒ}|jtjdƒ}|s[qnt|jtj    dƒ|jtj
dƒ||jtj dƒƒ}|s©qn|d}||krt j d||fƒtSqWt j d|ƒtS(Nis/ÏÞʱÇÀ¹º»î¶¯ÖеÄÉ̵êÀàÐÍ: actNum=%s,shopType=%ss1ÏÞʱÇÀ¹º·Ç»î¶¯Öлò·Ç»î¶¯ÖеÄÉ̵êÀàÐÍ£¡shopType=%s(RRRRRRRR/RR0R1R2RR<R8R7(tshopTypeR!RRRt actShopType((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytIsFlashSaleShopTypeys%B
 c    Cs’tj|tj|ƒsdSxotjjtjiƒj    ƒD]O}|jtj
dƒ}|sbq;n|jtj dƒ}|sƒq;nt |ƒ}|j tj|d|ƒ}|r·q;ntjd|ƒ}|sÕq;n|jƒ}|jƒ}    | s;|jƒ|    kr q;ntj|ƒ\}
} |jƒ} |jƒ} | s;| rMq;n|jƒ}tjjd|
| dftjƒtjd| ƒ}tjjd| | dftjƒ}tjƒ}||koÙ|knr;|
jddƒ| jddƒtjdƒj| ƒg}t j!||j"ƒg|j#ƒ|ƒtj$|
d    tj%ƒ}t j&|tj|||ƒtj'd
|j"ƒƒq;q;WdS( NiR s%s %s:00tminutesiÿÿÿÿs-s/s¡¢R+s    ·¢ËÍÐÂÏÞʱÇÀ¹ºÓʼþÌáÐÑ!((RtSetPlayerTickTimeRtTYPE_Player_Tick_FlashSaleRRRRRRRR0R
R3R6R R t
GetMailKeyt
GetLVLimittGetLVR9tGetStartTimeListtGetEndTimeListtGetAdvanceMinutestdatetimetstrptimetTYPE_Time_Formatt    timedeltatGetCurrentTimetreplacet    GbkToCodetjoinR@t SendMailByKeytGetIDtGetMailItemPrizeR:R;RAR<(R ttickR!RRRFRIRKtmailKeytLVLimitRLtendDatet startTimeListt endTimeListtadvanceMinutest    startTimetendTimet curDateTimet    paramListRN((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytProcessFlashSaleMailŒsH%      7& 9%cCs|tjtj|ƒ}|sdS|jtjdƒ}|s>dStjd|ƒ}|sZdS|jtjdƒ}tj    |j
ƒ|gƒ}|j ƒ}|j ƒ}t |ƒt |ƒkrÏtjd|ƒdS|jƒ}    tj|ƒ\}
} tjƒ} || _|
| _| | _|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+ƒ|_,|j-ƒsudn |j-ƒd|_.|j/ƒ|_0|j1ƒ|_2|j3ƒ|_4|j5ƒ|_6|j7ƒ}|j8ƒ}t9j:|    ||ƒ}||_;|j<ƒ|_=|j>ƒ|_?|j)j|ƒqBWt |j)ƒ|_@| j#j|ƒqÝWqÄWt | j#ƒ| _AtBjC|| ƒdS(NiR s%ÏÞʱÇÀ¹º¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%stStoretShopType(DRR-RRRR0R R R2RRRXRYRtErrLogtGetJobR9tChPyNetSendPackttagMCFlashSaleInfotActNumt    StartDatetEndtDateRZtAdvanceMinutest ActivityTimet    enumeratettagMCFlashSaleTimet    StartTimetEndtTimetappendtActivityTimeCountt GetIsDayResett
IsDayResetRVtLimitLVtShopInfotGetIpyGameDataByConditionR8ttagMCFlashSaleShoptDayIndext    TimeIndext GiftbagInfottagMCFlashSaleGiftbagRdtGiftIDt GetLimitCntt BuyCountLimittGetServerLimitCnttServerBuyCountLimitt GetMoneyTypet    MoneyTypet GetMoneyNumt MoneyNumbertGetMoneyOriginalt MoneyOriginalt    GetItemIDt
GetJobItemR>tGetShopJobItemtItemIDt
GetItemCntt    ItemCountt    GetIsBindtIsBindt GiftbagCountt    ShopCountt NetPackCommont SendFakePack(R RR!RRKRRRjRktjobt startDateStrt
endDateStrtpackInfotiRmttimeInfoRtshopListt    timeIndexROtshopItemIpyDataListtshopt itemIpyDatatgiftBagtitemIDt jobItemListt    jobItemID((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyRB¶s|                                             %      c    Cs«tjƒj|ƒ}|j}|j}tjtj|ƒ}|sFdS|jtj    dƒ}|sedSt
|ƒ}t j |t j||f|j|ƒt|||ƒdS(Ni(RR#R&RxtGoodsIDR-RRRR0R
R@RARtDef_PDict_FlashSaleYYtStateRC(    R)tpackDataRfR RtgoodsIDR!RRF((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytOnFlashSaleAppointment s         &icCs<tjtj|ƒ}|sdS|jtjdƒ}|s>dStjd|ƒ}|sZdS|jtjdƒ}t    |ƒ}t
j ƒ}||_ g|_ |dkr½d|_tj|jƒ|gƒ}    xJt|    ƒD]à\}
} xÑt| ƒD]Ã\} } tjdi| d6ttƒ}|s&qïnx‰tt|ƒƒD]u}|
d| d|}|jtj||fd|ƒ}|r9t
jƒ}||_d|_|j j|ƒq9q9WqïWqÖWnYd|_|jtj||fd|ƒ}t
jƒ}||_||_|j j|ƒt|j ƒ|_tj||ƒdS(NiR iRrRsi'id( RR-RRRR0R R R2R
RvttagMCFlashSaleAppointmentInfoRxt    GoodsListtIsAllRRR}R‡R8R$RR3RR´ttagMCFlashSaleAppointmentStatet    GoodsMarkRµRt
GoodsCountR¢R£(R RR·R!RRKRRFR§RRRªR«ROR¬R¨t    goodsMarkt isAppointmenttappoinetmentPack((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyRCsN               "         "    "         (RRR@R R>RvR¢RRR[R
RR"R*RRQRqRBR¸RC(((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyt<module>s&                                 .        *    U