hxp
2025-06-12 59331b7135fb10c24382d76fb0a3d721dddca7ee
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
51
52
53
54
55
56
57
Sð    hc@sñddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z dZ dZ d„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „ZdS( iÿÿÿÿNiicCs0|s
dStjd|ƒ}|s&dS|jƒS(NitActManyDayRecharge(t IpyGameDataPYtGetIpyGameDatat GetTemplateID(tcfgIDtipyData((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActManyDayRecharge.pyR"s cCs‰x‚tjjtjiƒjƒD]b}|jtjdƒ}t||ƒ}|s|jtjƒrt    ||ƒt
||ƒqqqWdS(Ni( t
PyGameDatatg_operationActionDicttgett ShareDefinet#OperationActionName_ManyDayRechargetvaluest ActKey_ActNumt"__CheckPlayerManyDayRechargeActiont ActKey_StatetSync_ManyDayRechargeActionInfotSync_ManyDayRechargePlayerInfo(t    curPlayertactInfotactNumtisReset((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActManyDayRecharge.pyt OnPlayerLogin*s% cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR (Rt playerManagertindexR((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActManyDayRecharge.pyt RefreshManyDayRechargeActionInfo7s c
CsP|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}t|jtj    dƒƒ}|j
t j |ƒ}|j
t j |ƒ}||krtjd||f|ƒ|r|r||krtj|t j ||ƒt||ƒtjd||ƒndS|jtjdƒ}    |j
t j|ƒ}
tjd||||||f|ƒt|||
|ƒtj|t j ||ƒtj|t j ||ƒtj|t j||    ƒx4ttƒD]&} tj|t j|| fdƒqÑWx4ttƒD]&} tj|t j|| fdƒqWt||ƒt||ƒtS(Nis.¶àÈÕÁ¬³ä»î¶¯ID²»±ä£¬²»´¦Àí£¡actNum=%s,actID=%ss#    »î¶¯ÖиüÐÂÄ£°åID: templateID=%ssZ¶àÈÕÁ¬³äÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,state=%s,templateID=%s,playerTemplateID=%s(t GetPlayerIDRt
GetActInfoR    R
Rt    ActKey_IDRRt ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_ManyDayRechargeIDtDef_PDict_ManyDayRechargeTempIDtDebugLogt PlayerControltNomalDictSetPropertyRtActKey_WorldLVt Def_PDict_ManyDayRechargeWorldLVt__SendManyDayRechargeMailRtMax_AwardKeyNumtDef_PDict_ManyDayRechargeAwardt Max_ActDaystDef_PDict_ManyDayRechargeValueRtTrue( RRtplayerIDRtactIDtstatet
templateIDt playerActIDtplayerTemplateIDt
actWorldLVt playerWorldLVtitdayIndex((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActManyDayRecharge.pyR As:       $$  cCsÓ|s
dStjd|ƒ}|s&dS|jƒ}ggg}}}xY|D]Q}    |    jƒ}
tj|tj|
t|gƒr†qMnt    j
|    j ƒƒ} |    j ƒ} d} xIt tƒD];}|jtj||fƒ}|| krº| d7} qºqºW| | kr qMntj|tj|
dt|gƒtj|    jƒ|gƒ}|j|gƒ|j|ƒ|j| t|    j ƒƒgƒtjd|||
fƒqMW|rÏ|d}tjd||||ƒndS(NtActManyDayRechargeAwardiisA¶àÈÕÁ¬³ä»î¶¯²¹·¢½±Àø! actNum=%s,playerTemplateID=%s,awardIndex=%si
sManyDayRechargeMail%s(RtGetIpyGameDataListRt GetAwardIndexRtGetDictValueByBitR$R.R1tCommFunct    RMBToCoint
GetNeedRMBt GetNeedDaysRR/R#R0tSetDictValueByBittGetDictValueByRangeKeytGetAwardItemInfotappendtstrtLogR(t SendMailBatch(RR7R9Rt ipyDataListR2tbatchPlayerIDListtbatchAddItemListtbatchParamListRt
awardIndextneedRechargeValuetneedDayst
finishDaysR;t rechargeValuet awardItemListtactType((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActManyDayRecharge.pyR,ls<   !   " 
cCs|dkrdSxtjjtjiƒjƒD]á}|jtjdƒ}|jtjdƒ}|jtjƒsˆt    j
d|ƒq/n|j t j ||fƒ}t||t jƒ}tj|t j ||f|ƒt||ƒt    j
d|||||f|jƒƒq/WdS(Nis!¶àÈÕÁ¬³ä»î¶¯µ±Ç°Î´¿ªÆô! actNum=%ssg¶àÈÕÁ¬³ä³äÖµ»î¶¯Ôö¼Ó³äÖµ¶î¶È: actNum=%s,dayIndex=%s,curRechargeValue=%s,addValue=%s,updRechargeValue=%s(RRRR    R
R R tActKey_DayIndexRRR'R#R$R0tmintDef_UpperLimit_DWordR(R)RR(RtaddValueRRR;tcurRechargeValuetupdRechargeValue((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActManyDayRecharge.pytAddManyDayRechargeValue—s %      $c    Cs{tj|dƒ}|dkr3tjd|ƒdS|jƒ}tjtj|ƒ}|jtjdƒ}t    |jtj
dƒƒ}| s’| r³tjd|||f|ƒdStj |t j |t|gƒròtjd||f|ƒdStjd|ƒ}|sdSd}x*|D]"}    |    jƒ|kr|    }PqqW|shtjd|||f|ƒdStj|jƒƒ}
|jƒ} i} d} x\ttƒD]N}|jt j||fƒ}||
krÝ| d7} n|r¢|| |<q¢q¢W| | kr'tjd    ||
| | | f|ƒdS|jt j|ƒ}tj|    jƒ|gƒ}tj||ƒsndStj |t j |dt|gƒt!||ƒ|j"ƒ}tjd
||||
| | fƒ|rt#j$d||j%ƒ| t&|jƒƒgƒnx6|D].\}}}tj'||||t(j)gƒq
Wi|d 6|d 6t&|ƒd 6|d6}t*j+|d|ƒdS(svOnGetManyDayRechargeAward
    @param awardIndex: ½±ÀøË÷Òý
    @param actNum: »î¶¯±àºÅ£¬Èç11 »ò  12 ´ú±í²»Í¬µÄ»î¶¯
    is!ûÓÐÖ¸¶¨ÁìÈ¡µÄ»î¶¯±àºÅ! actNum=%sNsB¸Ã¶àÈÕÁ¬³ä»î¶¯·Ç»î¶¯ÖУ¬ÎÞ·¨Áì½±£¡actNum=%s,state=%s,templateID=%ss5ÒѾ­ÁìÈ¡¹ý¸Ã¶àÈÕÁ¬³ä»î¶¯½±Àø! actNum=%s,awardIndex=%sR<sFÕÒ²»µ½¸Ã¶àÈÕÁ¬³ä»î¶¯µµÎ»Ë÷Òý½±Àø!actNum=%s,templateID=%s,awardIndex=%sis`δÂú×ã¶àÈÕÁ¬³äµµ´ÎÁ¬³äÌìÊý! templateID=%s,needRechargeValue=%s,needDays(%s) > finishDays(%s), %ssW    ÁìÈ¡³É¹¦! actNum=%s,templateID=%s,awardIndex=%s,needRechargeValue=%s,needDays=%s %st
TemplateIDt
AwardIndextItemListtActNumtManyDayRechargeAward(,RtToIntDefR'RR R    R
RRRR"R?R$R.R1RR=tNoneR>R@RARBRCRR/R#R0R+RERFt ItemControlertCheckPackSpaceEnoughRDRt GetNotifyKeyR(t WorldNotifyt GetPlayerNameRHtGivePlayerItemt IPY_GameWorldtrptItemtDataRecordPacktDR_FuncGiveItem(RRORR2RR4R5RKt awardIpyDataRRPRQtdayRechargeValueDictRRR;RSR8RTt    notifyKeytitemIDt    itemCountt isAuctionItemt addDataDict((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActManyDayRecharge.pytOnGetManyDayRechargeAward«sn  !         "      1#(cCsÖtjƒ}||_g|_x@ttƒD]2}|jtj||fƒ}|jj    |ƒq+Wt
|jƒ|_ x:tt ƒD],}|j j    |jtj||fƒƒq€Wt
|j ƒ|_tj||ƒdS(N(tChPyNetSendPackt!tagMCActManyDayRechargePlayerInfoR`tDayRechargeValuesRR/R#R$R0RGtlentDaysR-t AwardRecordR.t RecordCountt NetPackCommont SendFakePack(RRt playerActInfoR;RSR:((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActManyDayRecharge.pyRøs         *cCstjtj|ƒ}|jtjƒs+dS|jtjƒ}tjd|ƒ}|sYdS|j    ƒ}|sodS|j
t j |ƒ}tj |ƒ\}}tjƒ}    ||    _||    _||    _|jƒ|    _g|    _tjd|ƒ}
|
rÞxê|
D]ß} tjƒ} | jƒ| _tj| jƒƒ| _| jƒ| _g| _ tj!| j"ƒ|gƒ} xN| D]F\}}}tj#ƒ}||_$||_%||_&| j j'|ƒqkWt(| j ƒ| _)|    jj'| ƒqøWnt(|    jƒ|    _*t+j,||    ƒdS(NRR<(-RR R    R
RRR"RRRR#R$R+tGetOperationActionDateStrRvttagMCActManyDayRechargeInfoR`t    StartDatetEndtDatet
GetLVLimittLimitLVt    AwardListR=ttagMCActManyDayRechargeAwardR>R^R@RARBt NeedRechargeRCtNeedDayst AwardItemListRERFttagMCActManyDayRechargeItemtItemIDt    ItemCounttIsBindRGRytAwardItemCountt
AwardCountR}R~(RRRRRR5R8t startDateStrt
endDateStrt
clientPackRKRnt    awardInfoRTRqRrtisBindt    awardItem((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActManyDayRecharge.pyRsL                                     (RR    R(RRdRvRlRjR}RR$R@R/R-RRRR R,R\RuRR(((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActManyDayRecharge.pyt<module>s,                         
    +    +        M