cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
o\c@såddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zd„Zd„Zd„Zd    „Zd
„ZdS( iÿÿÿÿNcCsn|dks|dkrdStjd|ƒ}|s8dS|jƒ}|t|ƒkr`|dn||}|S(NitActTotalRechargeiÿÿÿÿ(tNonet IpyGameDataPYtGetIpyGameDatatGetTemplateIDListtlen(tcfgIDtdayIndextipyDatattemplateIDListt
templateID((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyt GetTemplateIDs &cCsZt|ƒ}|sVtjjtjiƒ}|jtjƒrVt|ƒt|ƒqVndS(N(    t __CheckPlayerTotalRechargeActiont
PyGameDatatg_operationActionDicttgett ShareDefinet!OperationActionName_TotalRecharget ActKey_StatetSync_TotalRechargeActionInfotSync_TotalRechargeInfo(t    curPlayertisResettactTotalRechargeInfo((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyt OnPlayerLogin)s 
cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}|jƒdkrLqnt|ƒqWdS(Ni(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextGetIDR (t playerManagertindexR((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pytRefreshTotalRechargeActionInfo3s cCsO|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
ƒ}||krpdSt |jtj dƒ|jtj dƒƒ}|jt    jƒ}tjd|||||f|ƒt||ƒtj|t    j
|ƒtj|t    j|ƒtj|t    jdƒtj|t    jdƒt|ƒt|ƒtS(NisdÀۼƳäÖµÖØÖÃ! TotalRechargeID=%s,playerTotalRechargeID=%s,state=%s,templateID=%s,playerTemplateID=%s(t GetPlayerIDR RRRRt    ActKey_IDRtNomalDictGetPropertytChConfigtDef_PDict_TotalRechargeIDR t ActKey_CfgIDtActKey_DayIndext!Def_PDict_TotalRechargeTemplateIDRtDebugLogt__SendTotalRechargeMailt PlayerControltNomalDictSetPropertytDef_PDict_TotalRechargeGoldt"Def_PDict_TotalRechargeAwardRecordRRtTrue(RtplayerIDRtTotalRechargeIDtstatetplayerTotalRechargeIDR
tplayerTemplateID((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyR =s&  -     
 
cCsk|s
dS|jtjƒ}|s&dStjd|ƒ}|sBdS|jƒ}ggg}}}|jtjƒ}|jƒ}    x¯|D]§}
|
jƒ} |t    d| ƒ@r²q‡n|
j
ƒ} || krÐq‡n|t    d| ƒO}|
j ƒj t |    ƒgƒ} |j|gƒ|j| ƒ|j| gƒq‡W|rgtj|tj|ƒtjd|||ƒndS(NtTotalRechargeTemplateitTotalRechargeMail(R$R%R.RtGetIpyGameDataListR"R/tGetJobt GetAwardIndextpowt GetNeedGoldt GetAwardItemRtstrtappendR,R-t SendMailBatch(RR5tcurRechargeGoldt ipyDataListR1tbatchPlayerIDListtbatchAddItemListtbatchParamListt awardRecordtjobRt
awardIndextneedGoldt awardItemList((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyR+_s8       cCsQ|dkrdStjjtjiƒ}|jtjƒsKtjdƒdS|jtjƒ}t    |jtj
dƒ|jtj dƒƒ}| s˜| r¼tj d||f|j ƒƒdStj|tj|ƒtj|tj|ƒ|jtjƒ}||}tj|tj|ƒt|ƒtjd|||||f|j ƒƒdS(NisÀۼƳäÖµ»î¶¯µ±Ç°Î´¿ªÆô!s+ÀۼƳäÖµ»î¶¯Êý¾ÝÒì³£!actID=%s,templateID=%ssYÍæ¼ÒÀۼƳäÖµ»î¶¯: actID=%s,templateID=%s,curRechargeGold=%s,addGold=%s,updRechargeGold=%s(R RRRRRRR*R#R R'R(tErrLogR"R,R-R%R&R)R$R.R(RtaddGoldRtactIDR
RAtupdRechargeGold((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pytAddTotalRechargeGold†s(  - 
 
     cCsþ|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}t|jtj    dƒ|jtj
dƒƒ}| s‰| r§t j d||f|ƒdS|j tjƒ}||krÉdS|j tjƒ}|td|ƒ@rt j d||ƒdStjd|ƒ}    |    s"dSd}
x*|    D]"} | jƒ|kr/| }
Pq/q/W|
syt j d||f|ƒdS|
jƒ} |
jƒjt|jƒƒgƒ} |j tjƒ}|| krët j d||| |f|ƒdSt| ƒ}tj|tj|ƒ}||krdS|td|ƒO}t j!|tj|ƒt"|ƒ|
j#ƒ}|r†t j$d||j%ƒ| gƒnx6| D].\}}}t&j'||||tjgƒqWi|d6| d    6|d
6t| ƒd 6}t(j)|d |ƒdS( Nis2ûÓÐÀۼƳäÖµ»î¶¯£¬ÎÞ·¨Áì½±£¡state=%s,templateID=%sis*ÒѾ­ÁìÈ¡¹ý¸ÃÀۼƳäÖµ»î¶¯½±Àø!awardIndex=%sR6s8ÕÒ²»µ½¸Ã·µÀû»î¶¯µµÎ»Ë÷Òý½±Àø!templateID=%s,awardIndex=%ssWËùÐè³äÖµÏÉÓñÊý²»×㣬ÎÞ·¨ÁìÈ¡!templateID=%s,awardIndex=%s,needGold=%s,curRechargeGold=%st
TemplateIDtNeedGoldt
AwardIndextItemListtTotalRechargeAward(*R"R RRRRR#RR R'R(RR*R$R%R&R/R;RR8RR:R<R=R>R9R.Rt
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR,R-Rt GetNotifyKeyt WorldNotifyt GetPlayerNamet ItemControlertGivePlayerItemtDataRecordPacktDR_FuncGiveItem(RRHR1RR2R3R
R4RFRBt awardIpyDataRRIRJRAt    needSpacet    packSpacet    notifyKeytitemIDt    itemCounttisBindt addDataDict((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pytOnGetTotalRechargeAward sb -   $       
 "#cCsJtjƒ}|jtjƒ|_|jtjƒ|_tj    ||ƒdS(N(
tChPyNetSendPackttagMCTotalRechargePlayerInfoR$R%R.t    GoldTotalR/t AwardRecordt NetPackCommont SendFakePack(Rt playerActInfo((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyRâs
 cCsntjjtjiƒ}|s"dS|jtjƒs8dS|jtjƒ}tjd|ƒ}|sfdS|j    ƒ}|s|dS|j
ƒ}t j ƒj tjƒd}tjƒ}t j|jƒ|ƒ|_t j|jƒ|ƒ|_|jƒ|_|jƒ|_g|_x8|D]0}tjd|ƒ}    |    s8qntjƒ}
g|
_xÒ|    D]Ê}tjƒ} |jƒ| _ |j!ƒ| _"g| _#|j$ƒ} x`| jt%|ƒgƒD]F\} }}tj&ƒ}| |_'||_(||_)| j#j*|ƒq²Wt+| j#ƒ| _,|
jj*| ƒqTWt+|
jƒ|
_-|jj*|
ƒqWt+|jƒ|_.t/j0||ƒdS(NRiR6(1R RRRRRR'RRRR9Rt GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayRittagMCActTotalRechargeInfotGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatet
GetLVLimittLimitLVt GetIsDayResett
IsDayResett AwardDayInfoR8ttagMCTotalRechargeAwardDayt    AwardInfottagMCTotalRechargeAwardR:RRR<RQt    AwardItemR=R>ttagMCTotalRechargeAwardItemtItemIDt    ItemCounttIsBindR?RtAwardItemCountt
AwardCountt    AwardDaysRmRn(RRRRR    RGt openServerDaytactInfoR
RBtdayInfot    awardInfot awardItemDictRdReRft    awardItem((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyRêsZ                    (             (R RR,RR\RiR^RWRmRURR%R RR!R R+RORhRR(((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActTotalRecharge.pyt<module>s(                
    
    
    "    '        B