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
úBèic@såddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zd„Zd„Zd„Zd    „Zd
„ZdS( iÿÿÿÿNcCs"xtjjtjiƒjƒD]û}|jtjƒs=qn|jtjdƒ}|jtjƒ}t    j
d|ƒ}|s‚qn|dks|dks|j ƒdkr²qn|j ƒ}|dkrÐqnt j|tj||ƒt||ƒtjd|||f|jƒƒqWdS(NitActTotalRechargeii
t1sS¿ª·þÀÛ³ä»î¶¯¸üкóÀÏ·þÍæ¼ÒÊ׵ǻ¹ÔڻʱÐÞÕýÀÛ³äÖµ: actNum=%s,cfgID=%s,coinTotal=%s(t
PyGameDatatg_operationActionDicttgett ShareDefinet!OperationActionName_TotalRechargetvaluest ActKey_Statet ActKey_ActNumt ActKey_CfgIDt IpyGameDataPYtGetIpyGameDatat GetStartDatetGetChangeCoinPointTotalt PlayerControltNomalDictSetPropertytChConfigtDef_PDict_ActTotalRechargeCointSync_TotalRechargePlayerInfot    GameWorldtLogt GetPlayerID(t    curPlayertactInfotactNumtcfgIDtipyDatat    coinTotal((suD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pytFixOSATotalRecharge s"%*   'cCs‰x‚tjjtjiƒjƒD]b}|jtjdƒ}t||ƒ}|s|jtjƒrt    ||ƒt
||ƒqqqWdS(Ni( RRRRRRR    t __CheckPlayerTotalRechargeActionRtSync_TotalRechargeActInfoR(RRRtisReset((suD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyt OnPlayerLogin8s% cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(RtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(Rt playerManagertindexR((suD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pytRefreshTotalRechargeActionInfoEs c    Cso|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ƒt||ƒt||ƒtS(Nis4ÀÛ³ä»î¶¯ID²»±ä£¬²»´¦Àí£¡ actNum=%s,cfgID=%s,actID=%ssGÀÛ³ä»î¶¯ÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,state=%s,playerCfgID=%s(RRt
GetActInfoRRRt    ActKey_IDRR
tNomalDictGetPropertyRtDef_PDict_ActTotalRechargeIDtDebugLogtDef_PDict_ActTotalRechargeCfgIDt__SendTotalRechargeMailRRRtDef_PDict_ActTotalRechargeAwardRRtTrue(    RRtplayerIDRtactIDtstateRt playerActIDt playerCfgID((suD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyRNs(         cCsh|s
dStjd|ƒ}|s&dS|jƒ}|jƒ}|jƒ}|jƒ}tjd|ƒ}| sv| rzdS|jtj    |ƒ}|jtj
|ƒ}    x»|D]³}
|
j ƒ} |    t d| ƒ@rØq­nt j|
jƒƒ} || krÿq­n|    t d| ƒO}    |
jƒ} tj|tj
||    ƒt j| ƒg}tj||| |ƒq­WdS(NRtActTotalRechargeTempi(R tGetIpyGameDataNotLogt    GetActNumRt GetCTGTempIDt GetAwardMailtGetIpyGameDataListR,RRR1t GetAwardIndextpowtCommFunct    RMBToCoint GetNeedAmounttGetAwardItemListRRt
CoinToYuant
PlayerMailt SendMailByKey(RR7t
cfgIpyDataRR3t    CTGTempIDt    AwardMailt ipyDataListtcurCoint awardRecordRt
awardIndextneedCoint awardItemListt    paramList((suD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyR0ms6        c
Csš|dkrdSxƒtjjtjiƒjƒD]c}|jtjdƒ}|jtjƒsstj    d|ƒq/n|jtj
dƒ}|s”q/nt j d|ƒ}|s²q/n|j ƒ}|td|ƒ@sútj    d|||f|jƒƒq/n|jtj|ƒ}t||tjƒ}    tj|tj||    ƒt||ƒtj    d|||||    f|jƒƒ|jƒr/t||ƒq/q/WdS(NisÀÛ³ä»î¶¯µ±Ç°Î´¿ªÆô! actNum=%sRisLÍæ¼ÒÀÛ³ä»î¶¯£¬³äÖµÀàÐͶԸûÎÞЧ! actNum=%s,coinType=%s,ctgTypeEffValue=%ssAÍæ¼ÒÀÛ³ä»î¶¯: actNum=%s,cfgID=%s,curCoin=%s,addCoin=%s,updCoin=%s(RRRRRRR    RRR.R
R R tGetCTGTypeEffValueR?RR,RRtmintDef_UpperLimit_DWordRRRtGetIsOfflineActR0(
RtaddCointcoinTypeRRRRtctgTypeEffValueRKtupdCoin((suD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pytAddTotalRechargeCoin‘s6 %            c    Cs–tj|dƒ}|dkr3tjd|ƒdS|jƒ}tjtj|ƒ}|jtjdƒ}|jtj    dƒ}| sŒ| rªtjd||f|ƒdSt
j d|ƒ}|sÆdS|j ƒ}|sÜdSt
j d|ƒ}    |    sødS|jtj|ƒ}
|jtj|ƒ} | td|ƒ@rUtjd||f|ƒdSd} x*|    D]"} | jƒ|krb| } PqbqbW| s²tjd    ||||f|ƒdStj| jƒƒ}|
|krýtjd
|||||
|f|ƒdS| td|ƒO} | jƒ}tj|tj|| ƒt||ƒi|d 6|d 6|d 6|d6|d6|d6}tj||ddt|gƒdS(shÁìÈ¡À۳佱Àø
    @param awardIndex ½±ÀøË÷Òý
    @param actNum: »î¶¯±àºÅ£¬Èç11 »ò  12 ´ú±í²»Í¬µÄ»î¶¯
    is%ûÓÐÖ¸¶¨ÁìÈ¡µÄÀÛ³ä»î¶¯±àºÅ! actNum=%sNs,ÀÛ³ä»î¶¯·Ç»î¶¯ÖÐÎÞ·¨Áì½±£¡actNum=%s,state=%sRR8is1ÒѾ­ÁìÈ¡¹ý¸ÃÀÛ³ä»î¶¯½±Àø! actNum=%s,awardIndex=%ssKÕÒ²»µ½¸ÃÀÛ³ä»î¶¯µµÎ»Ë÷Òý½±Àø! actNum=%s,cfgID=%s,CTGTempID=%s,awardIndex=%ssWËùÐè³äÖµ¶î¶È²»×ãÎÞ·¨ÁìÈ¡! actNum=%s,cfgID=%s,CTGTempID=%s,awardIndex=%s,curCoin=%s < %stActNumtCfgIDRHtNeedCoint
AwardIndextItemListteventt TotalRecharge(RtToIntDefR.RR*RRRRR
R R R;R=R,RRR1R?tNoneR>R@RARBRCRRRt ItemControlertGivePlayerItemOrMailR2(RRMRR3RR5RRGRHRJRKRLt awardIpyDataRRNROtdrDict((suD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pytOnGetTotalRechargeAward¹sZ            0cCsÄtjtj|ƒ}|jtjƒs+dS|jtjƒ}tjd|ƒ}|sYdS|j    ƒridSt
j ƒ}||_ |j tj|ƒ|_|j tj|ƒ|_tj||ƒdS(NR(RR*RRRRR
R R RTtChPyNetSendPackttagSCActTotalRechargePlayerInfoRZR,RRt    CoinTotalR1t AwardRecordt NetPackCommont SendFakePack(RRRRRt
clientPack((suD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyRós      c    Cs×tjtj|ƒ}|jtjƒs+dS|jtjƒ}tjd|ƒ}|sYdS|j    ƒridStj
|ƒ\}}|jtj |ƒ}t j ƒ}||_||_||_||_tj||ƒdS(NR(RR*RRRRR
R R RTtGetOperationActionDateStrtActKey_StartDateSyncRhttagSCActTotalRechargeInfoRZt    StartDatetEndtDateR[RlRm(    RRRRRt startDateStrt
endDateStrt startDateSyncRn((suD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyR
s$                  (RRRRR RhRcRlRERR@ttimeRR!R)RR0RYRgRR(((suD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyt<module>s(                                     $    (    :