hwj35
4 天以前 e7caa14c21c59641065d23532b6716d1b2f66f85
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
'÷hc@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((snD:\SG_ServerCode\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((snD:\SG_ServerCode\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((snD:\SG_ServerCode\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 ((snD:\SG_ServerCode\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((snD:\SG_ServerCode\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((snD:\SG_ServerCode\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((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytProcessFlashSaleMailŒsH%      7& 9%cCs3tjtj|ƒ}|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| _#xSt|ƒD]E\}}x6t|ƒD](\}}tj$di|d6t%t%ƒ}|sqÝntj&ƒ}||_'||_(g|_)x¥|D]}tj*ƒ}|j+ƒ|_,|j-ƒ|_.d|_/|j0ƒ|_1|j2ƒ|_3|j4ƒ|_5|j6ƒ|_7|j8ƒ|_9d|_:|j)j|ƒqBWt |j)ƒ|_;| j#j|ƒqÝWqÄWt | j#ƒ| _<t=j>|| ƒdS(NiR s%ÏÞʱÇÀ¹º¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%stStoretShopType(?RR-RRRR0R R R2RRRXRYRtErrLogtGetJobR9tChPyNetSendPackttagMCFlashSaleInfotActNumt    StartDatetEndtDateRZtAdvanceMinutest ActivityTimet    enumeratettagMCFlashSaleTimet    StartTimetEndtTimetappendtActivityTimeCountt GetIsDayResett
IsDayResetRVtLimitLVtShopInfotGetIpyGameDataByConditionR8ttagMCFlashSaleShoptDayIndext    TimeIndext GiftbagInfottagMCFlashSaleGiftbagRdtGiftIDt GetLimitCntt BuyCountLimittServerBuyCountLimitt GetMoneyTypet    MoneyTypet GetMoneyNumt MoneyNumbertGetMoneyOriginalt MoneyOriginalt    GetItemIDtItemIDt
GetItemCntt    ItemCounttIsBindt GiftbagCountt    ShopCountt NetPackCommont SendFakePack(R RR!RRKRRRjRktjobt startDateStrt
endDateStrtpackInfotiRmttimeInfoRtshopListt    timeIndexROtshopItemIpyDataListtshopt itemIpyDatatgiftBag((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyRB¶sv                                                     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((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pytOnFlashSaleAppointments         &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((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyRCsN               "         "    "         (RRR@R R>RvRžRRR[R
RR"R*RRQRqRBR±RC(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashSale.pyt<module>s&                                 .        *    R