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
Sð    hc@s¬ddlZddlZddlZddlZddlZddlZddlZddlZd„Zd„Z    d„Z
d„Z d„Z d„Z d„Zd    „ZdS(
iÿÿÿÿNcCsZt|ƒ}|sVtjjtjiƒ}|jtjƒrVt|ƒt|ƒqVndS(N(    t%__CheckPlayerRechargeRebateGoldActiont
PyGameDatatg_operationActionDicttgett ShareDefinet&OperationActionName_RechargeRebateGoldt ActKey_Statet!Sync_RechargeRebateGoldActionInfot!Sync_RechargeRebateGoldPlayerInfo(t    curPlayertisResettactInfo((s_.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargeRebateGold.pyt OnPlayerLogins 
cCs[tjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsIqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(t playerManagertindexR    ((s_.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargeRebateGold.pyt#RefreshRechargeRebateGoldActionInfo%s c    CsÁ|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
ƒ}t |jtj dƒ|jtj dƒƒ}|jt    jƒ}||kr tjd|ƒ|r    ||kr    |r    tj|t    j|ƒtjd||f|ƒq    ndStjd|||f|ƒ|jt    jƒ}|rg|rg|dkrgt|||ƒntj|t    j
|ƒtj|t    j|ƒtj|t    jdƒt|ƒt|ƒtS(Nis$ÀۼƳäÖµ·µÀûÏÉÓñ»î¶¯ID²»±ä£¬²»´¦Àí£¡sP    »î¶¯Ä£°åID±ä¸ü£¬¸üÐÂÍæ¼ÒÉíÉÏÄ£°åID¼Ç¼£¡playerTemplateID=%s,updTemplateID=%ss:ÀۼƳäÖµ·µÀûÏÉÓñ»î¶¯ÖØÖÃ! actID=%s,playerActID=%s,state=%s(t GetPlayerIDRRRRRt    ActKey_IDRtNomalDictGetPropertytChConfigtDef_PDict_RechargeRebateGoldIDt GetTemplateIDt ActKey_CfgIDtActKey_DayIndext&Def_PDict_RechargeRebateGoldTemplateIDR tDebugLogt PlayerControltNomalDictSetPropertytDef_PDict_RechargeRebateGoldRMBt__SendRebateGoldMailRRtTrue(    R    tplayerIDR tactIDtstatet playerActIDt
templateIDtplayerTemplateIDttotalRMB((s_.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargeRebateGold.pyR/s2 -     
 
cCsn|dks|dkrdStjd|ƒ}|s8dS|jƒ}|t|ƒkr`|dn||}|S(NitActRechargeRebateGoldiÿÿÿÿ(tNonet IpyGameDataPYtGetIpyGameDatatGetTemplateIDListtlen(tcfgIDtdayIndextipyDatattemplateIDListR)((s_.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargeRebateGold.pyRTs &c CsA|jƒ}tjd||f|ƒtjd|ƒ}|sBdSd}xd|D]\}|jƒ}|jƒ}||ko„|kns¡||krO|dkrO|}PqOqOW|sÉtjd|ƒdS|jƒ}    g}
||    g} t    t
||    dƒt j ƒ} tjd|    | f|ƒt jd|g|
| | ƒdS(Ns=ÀۼƳäÖµ·µÀûÏÉÓñ·¢Ëͽ±ÀøÓʼþ! playerTemplateID=%s,totalRMB=%stRechargeRebateGoldTemplateisÍæ¼ÒÎÞ·µÀûÏÉÓñ½±Àø!gY@s     ·µÀûÏÉÓñ°Ù·Ö±È=%s%%, gold=%stRechargeRebateGold(RR RR.tGetIpyGameDataListR-t    GetRMBMint    GetRMBMaxt GetRebateRatetmintintRtDef_UpperLimit_DWordR t SendMailByKey( R    R*R+R%t ipyDataListt rebateIpyDataR4trmbMintrmbMaxt
rebateRatet addItemListt    paramListtgold((s_.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargeRebateGold.pyR#^s,    4   cCs’tjjtjiƒ}|s"dS|jtjƒs8dS|jtjƒ|}t    j
|tj|ƒt j d||f|j ƒƒt|ƒdS(Ns>ÀۼƳäÖµ·µÀûÏÉÓñ»î¶¯Ôö¼ÓÍæ¼ÒÀۼƳäÖµRMB: addRMB=%s,totalRMB=%s(RRRRRRRRR"R R!R RRR(R    taddRMBR R+((s_.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargeRebateGold.pytAddRechargeRebateGoldRMB|s 
cCs5tjƒ}|jtjƒ|_tj||ƒdS(N(tChPyNetSendPackt!tagMCRechargeRebateGoldPlayerInfoRRR"tRechargeRMBTotalt NetPackCommont SendFakePack(R    t playerActInfo((s_.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargeRebateGold.pyRs c Cs¼tjjtjiƒ}|s"dS|jtjƒs8dS|jtjƒ}tjd|ƒ}|sfdS|j    ƒ}|s|dSt
j |ƒ\}}t j ƒ}||_||_|jƒ|_|jƒ|_g|_x½|D]µ}tjd|ƒ}|sqÝnt jƒ}    g|    _xW|D]O}
t jƒ} |
jƒ| _|
jƒ| _|
jƒ| _|    jj| ƒqWt |    jƒ|    _!|jj|    ƒqÝWt |jƒ|_"t#j$||ƒdS(NR,R6(%RRRRRRRR.R/R0R tGetOperationActionDateStrRJttagMCActRechargeRebateGoldInfot    StartDatetEndtDatet
GetLVLimittLimitLVt GetIsDayResett
IsDayResett RebateDayInfoR8ttagMCActRechargeRebateDayt
RebateInfottagMCActRechargeRebateR9tRMBMinR:tRMBMaxR;t
RebateRatetappendR1tRebatest
RebateDaysRMRN( R    R R2R4R5t startDateStrt
endDateStrR)R@tdayInfot
dayIpyDatat
rebateInfo((s_.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargeRebateGold.pyR”sH                      (RRR RR RMRJR.R RRRR#RIRR(((s_.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargeRebateGold.pyt<module>s            
    
    %