hxp
1 天以前 f7b199a8cf94cc1b2d5b74dc8f2cbd0815bb270f
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
øßic@sÐddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
d„Z d„Z d„Z d„Zd„Zd„Zd„Zd    „ZdS(
iÿÿÿÿNcCs‰x‚tjjtjiƒjƒD]b}|jtjdƒ}t||ƒ}|s|jtjƒrt    ||ƒt
||ƒqqqWdS(Ni( t
PyGameDatatg_operationActionDicttgett ShareDefinet"OperationActionName_TotDayRechargetvaluest ActKey_ActNumt!__CheckPlayerTotDayRechargeActiont ActKey_StatetSync_TotDayRechargeActInfotSync_TotDayRechargePlayerInfo(t    curPlayertactInfotactNumtisReset((svD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotDayRecharge.pyt OnPlayerLogins% cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(R t playerManagertindexR ((svD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotDayRecharge.pytRefreshTotDayRechargeActionInfo,s c    Cs‰|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j |ƒ}||kr£tj d|||f|ƒdS|j    t
j |ƒ}tj d|||||f|ƒt||ƒtj|t
j ||ƒtj|t
j ||ƒtj|t
j|dƒtj|t
j|dƒtj|t
j|dƒt||ƒt||ƒtS(Nis6ÀÛ³äÌì»î¶¯ID²»±ä£¬²»´¦Àí£¡ actNum=%s,cfgID=%s,actID=%ssIÀÛ³äÌì»î¶¯ÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,state=%s,playerCfgID=%s(t GetPlayerIDRt
GetActInfoRRRt    ActKey_IDRt ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_ActTotDayRechargeIDtDebugLogt Def_PDict_ActTotDayRechargeCfgIDt__SendTotDayRechargeMailt PlayerControltNomalDictSetPropertyt Def_PDict_ActTotDayRechargeAwardtDef_PDict_ActTotDayRechargeDaystDef_PDict_ActTotDayRechargeTimeR    R
tTrue(    R R tplayerIDR tactIDtstatetcfgIDt playerActIDt playerCfgID((svD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotDayRecharge.pyR5s*         cCsJ|s
dStjd|ƒ}|s&dS|jƒ}|jƒ}|jƒ}|jƒ}tjd|ƒ}| sv| rzdS|jtj    |ƒ}|jtj
|ƒ}    x|D]•}
|
j ƒ} |    t d| ƒ@rØq­n|| krêq­n|    t d| ƒO}    |
j ƒ} tj|tj
||    ƒ| g} tj||| | ƒq­WdS(NtActTotDayRechargetActTotDayRechargeTempi(t IpyGameDataPYtGetIpyGameDataNotLogt    GetActNumRt GetTemplateIDt GetAwardMailtGetIpyGameDataListRRR&R%t
GetNeedDaytpowtGetAwardItemListR#R$t
PlayerMailt SendMailByKey(R R.t
cfgIpyDataR R)t
TemplateIDt    AwardMailt ipyDataListtcurDaystdayAwardRecordtipyDatatneedDayt awardItemListt    paramList((svD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotDayRecharge.pyR"Ts4            c
CsÞ|dkrdSxÇtjjtjiƒjƒD]§}|jtjdƒ}|jtjƒsstj    d|ƒq/n|jtj
dƒ}|s”q/nt j d|ƒ}|s²q/n|j ƒ}|td|ƒ@sútj    d|||f|jƒƒq/nttjƒƒ}|jtj|ƒ}    tj|tj||ƒ|jtj|ƒ}
} |     sptj|    |ƒ r—| d7} tj|tj|| ƒnt||ƒtj    d|||
| tj|    ƒf|jƒƒq/WdS(NisÀÛ³äÌì»î¶¯µ±Ç°Î´¿ªÆô! actNum=%sR/isNÍæ¼ÒÀÛ³äÌì»î¶¯£¬³äÖµÀàÐͶԸûÎÞЧ! actNum=%s,coinType=%s,ctgTypeEffValue=%sisBÍæ¼ÒÀÛ³äÌì»î¶¯: actNum=%s,cfgID=%s,nowDay=%s,updDay=%s,lastTime=%s(RRRRRRRRRR RR1tGetIpyGameDatatGetCTGTypeEffValueR8RtintttimeRRR'R#R$R&tCheckTimeIsSameDateR
tChangeTimeNumToStr( R taddCointcoinTypeR R R,RBtctgTypeEffValuetcurTimetlastTimetnowDaytupdDay((svD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotDayRecharge.pytAddTotDayRechargeCoinws: %     
     -cCsmtj|dƒ}|dkr3tjd|ƒdS|jƒ}tjtj|ƒ}|jtjdƒ}|jtj    dƒ}| sŒ| rªtjd||f|ƒdSt
j d|ƒ}|sÆdS|j ƒ}t
j d|ƒ}    |    sîdS|jtj|ƒ}
|jtj|ƒ} | td|ƒ@rKtjd||f|ƒdSd} x*|    D]"} | jƒ|krX| } PqXqXW| s¨tjd    ||||f|ƒdS|
|krÛtjd
||||
|f|ƒdS| td|ƒO} | jƒ}tj|tj|| ƒt||ƒi|d 6|d 6|d 6|d6|d6}tj||ddt|gƒdS(sfÁìÈ¡ÀÛ³äÌì½±Àø
    @param awardDay ½±ÀøÌì
    @param actNum: »î¶¯±àºÅ£¬Èç11 »ò  12 ´ú±í²»Í¬µÄ»î¶¯
    is'ûÓÐÖ¸¶¨ÁìÈ¡µÄÀÛ³äÌì»î¶¯±àºÅ! actNum=%sNs.ÀÛ³äÌì»î¶¯·Ç»î¶¯ÖÐÎÞ·¨Áì½±£¡actNum=%s,state=%sR/R0is3ÒѾ­ÁìÈ¡¹ý¸ÃÀÛ³äÌìÌì»î¶¯½±Àø! actNum=%s,awardDay=%ssLÕÒ²»µ½¸ÃÀÛ³äÌì»î¶¯µµÎ»Ë÷Òý½±Àø! actNum=%s,cfgID=%s,TemplateID=%s,awardDay=%ssHËùÐèÀÛ³äÌì²»×ãÎÞ·¨ÁìÈ¡! actNum=%s,cfgID=%s,TemplateID=%s,curDays=%s < %stActNumtCfgIDR=tAwardDaytItemListteventtTotDayRecharge(RtToIntDefR RRRRRRRR1RFR4R6RRR&R%R8tNoneR7R9R#R$R
t ItemControlertGivePlayerItemOrMailR((R tawardDayR R)R R+R,R<R=R?R@RAt awardIpyDataRBRDtdrDict((svD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotDayRecharge.pytOnGetTotDayRechargeAwardŸsR      #  )cCs´tjtj|ƒ}|jtjƒs+dS|jtjƒ}tjd|ƒ}|sYdSt    j
ƒ}||_ |j t j|ƒ|_|j t j|ƒ|_tj||ƒdS(NR/(RRRRRRRR1RFtChPyNetSendPackt tagSCActTotDayRechargePlayerInfoRTRRR&t    TotalDaysR%t AwardRecordt NetPackCommont SendFakePack(R R R R,RBt
clientPack((svD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotDayRecharge.pyR
Øs     c    CsÇtjtj|ƒ}|jtjƒs+dS|jtjƒ}tjd|ƒ}|sYdStj    |ƒ\}}|jtj
|ƒ}t j ƒ}||_ ||_||_||_tj||ƒdS(NR/(RRRRRRRR1RFtGetOperationActionDateStrtActKey_StartDateSyncRbttagSCActTotDayRechargeInfoRTt    StartDatetEndtDateRURfRg(    R R R R,RBt startDateStrt
endDateStrt startDateSyncRh((svD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotDayRecharge.pyR    ës                  (RRRR#R1RbR\RfR:RRIRRRR"RSRaR
R    (((svD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotDayRecharge.pyt<module>s$                                #    (    9