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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  =\c@sýddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
dd„Z d„Z d„Z d„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zded„ZdS(iÿÿÿÿNicCs|j||tjƒS(N(tNomalDictGetPropertytChConfigtDef_PDictType_GoldInvest(t    curPlayertkeyt defaultValue((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyt__GetPDictValue(scCstj|||tjƒdS(N(t PlayerControltNomalDictSetPropertyRR(RRtvalue((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyt__SetPDictValue1scCs/t|ƒxtjD]}t||ƒqWdS(N(t__CheckOldInvestRtGoldInvestTypeListtSync_GoldInvestInfo(RtiType((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pytOnLogin9s
cCs_t|ƒt|ƒxtjD]}t||ƒqWt|ƒ}t|tjtj|ƒdS(N(    R t__CheckInvestResetRR R t__GetInvestLVDataR
tDef_PDict_GoldInvest_AwardDatatGoldInvestType_VIP(RRt    awardData((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pytOnDayCs
 
 cCs
tj}t|tj|ƒ}|s)dSt||ƒ}tjdƒ}|jt|ƒdƒ}||ks‡t|tj    ||fƒrót
|tj |dƒt
|tj|dƒx;t d|dƒD]#}t
|tj    ||fdƒqÉWnt ||dtƒdS(Nt InvestMaxDayiitisForce(RRRtDef_PDict_GoldInvest_Goldt__GetInvestCurDayt IpyGameDataPYtGetFuncEvalCfgtgettstrt#Def_PDict_GoldInvest_GotRewardValueR
tDef_PDict_GoldInvest_TimetxrangeR tTrue(Rt
investTypetinvestGoldRecordtcurDaytinvestMaxDayDicttmaxDayti((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyRPs    ($cCs/tj}t|tj|ƒ}|dkr/dSd}t||ƒ}||krTdSt|tj||fƒrŠt|d|dƒ}nt||dƒ}|rÂi}x—|D]}|d}|dkrÕd}ntjd|d|ƒ}    |    sûq°n|    j    ƒd}
x1|
D])\} } } |j
| dƒ| || <qWq°Wg|j ƒD]\} } | | df^qP}t j d    |jƒg|t|ƒgƒtjd
t|ƒ|f|jƒƒnt|tj|dƒt|tj|dƒx8td|dƒD]#}t|tj||fdƒqWdS( Ni,iiiitInvestidt1t    VIPInvests.    ¾É°æ±¾Í¶×ʲ¹³¥ sendDay=%s, sendItemList=%s(RRRRRRtrangeRtGetIpyGameDatat    GetRewardRtitemsRt SendMailByKeytGetIDtlent    GameWorldtLogR
RR (RR"R#R&R$t sendDayListt sendItemDicttdaytindextipyDatatitemListtitemIDtitemCnttisBindt sendItemListR'((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyR as>       
     ".()!cCsmtjƒj|ƒ}|j}|j}tjd||fƒtjdƒ}t|ƒ|krcdS|t|ƒ}||krštjd||fƒdS|j    |ƒd}|t
j krt |ƒ}tj ddƒ}    |jƒ|    krtjd|    ƒdSn|}
t|t
j|ƒ} | rSt||ƒ} |t
jkrátjdƒ} | jt|ƒd    ƒ}| |kr’tjd
| |fƒdS| |krPt|t
j||fƒ}|sÞtjd ||fƒdSqPqS|t
jkr;| |krtjd | |fƒdS|| }
tjd | |
fƒqStjd|ƒdSnt||||
|ƒdS(Ns%Ͷ×ÊÀí²Æ£ºinvestType=%s,investGold=%st
InvestCosts9    Í¶×ÊÀí²Æ Í¶×ʶî¶È²»´æÔÚ investGold=%s£¬ investType=%siR*is    Í¶×ÊÀí²Æ ÐèÒªVIP%sRis+    »¹ÓÐͶ×ÊÌìÊýδÁìÈ¡£¡curDay=%s,maxDay=%ssA    »¹ÓÐδÁìÈ¡µÄͶ×ʻر¨£¬²»¿ÉͶ×Ê£¡investType=%s,rewardRecord=%ss4    ÒÑͶ×ʵµ´Î=%s >= ×·¼ÓͶ×ʵµ´Î=%s ,²»¿É×·¼ÓͶ×Ê£¡s     ÒÑͶ×Ê=%s£¬×·¼ÓͶ×ÊÐè¿Û³ý=%ss*    investType = %s ÒÑͶ×ʹý£¬²»¿ÉÖØ¸´Í¶×Ê(R2tGetPlayerManagertGetPlayerByIndext
InvestTypet
InvestGoldtDebugLogRRRR7RRRt
GetFuncCfgtGetVIPLvRRRtCanRepeatInvestTypeRRtInvestGoldTypeListt__DoGoldInvest(R7t
clientDatattickRR"t
investGoldtinvestCostDicttcostListRt    needVIPLVt
deductGoldR#R$R%R&t rewardRecord((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyt OnGoldInvestsZ                
     
cCsNt|tj|ƒ}tjtjƒƒ}td||ƒ}|dddS(Niiii(RRRR2tChangeTimeStrToNumtGetCurrentDataTimeStrtmax(RR"t
investTimetcurTimetpassTick((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyRÐscCsjtjdƒ}|jƒ}xH|jƒD]:\}}|d|koS|dknr(t|ƒSq(WdS(NR*ii(RRtGetLVR.tint(RtinvestLVDataDicttlvtkeyDatatlvRange((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyR×s  $c Csøi|d6|d6|d6|tj6}tj|tj|tj|ƒsJdS||kr“tjddiƒj    |dƒ}|r“t
j ||ƒq“n|tj krÁtj dd|jƒgƒn1|tjkròtj dd|jƒ|gƒntjƒ}tjt|ƒd     tjƒ}t|tj||ƒt|tj||ƒt|tj||ƒ|tjkrÖtjd
ƒ}    |    j    t|ƒdƒ}
x;td|
dƒD]#} t|tj|| fdƒq¬Wnt||ƒtjd |ƒdS( NRAt
DeductGoldRBtInvestRedPackAwardiitVIPInvestmentRadiotJadeInvestmentRadioi
Rs    Í¶×ʳɹ¦£¡¿Û³ý×êʯ=%s(RtDef_Cost_Reason_SonKeyRtPayMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytDef_Cost_GoldInvestRRRtPlayerFamilyRedPackettCreatRedPacketByIDRt WorldNotifytGetNameRGR2tGetCurrentTimeRRRtTYPE_Time_Format_DayR
RRRRFR RR RC( RR"RKRORtinfoDictt redPacketIDRVt
curTimeNumR%R&R'((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyRHãs4  !" $ c
Cs2tjƒj|ƒ}|j}|j}tjd|d|ƒ}|sKdSt|tj    |ƒ}tj
d|||fƒ|s–tj
d|ƒdS|j ƒ}|j ƒ|krÏtj
d||fƒdS|j ƒ}    |    rt||ƒ}
|    |
krtj
d|
|    fƒdSn|jƒ} t|tj|dƒ} t| ƒ| krltj
d| | fƒdS| t| ƒ} | }tj||f}t||ƒ}|rŒ|tjkrn| |krP| t|ƒ}g}x| D]g\}}}|}x9|D]1}||d    krþtd||dƒ}PqþqþW|j|||gƒqâWq‰tj
d
||fƒdSqŒtj
d ||fƒdSnt||| ƒtj
d |ƒ|rþxH|D]=\}}}tj||||tjtjgtd tƒqºWnt|ƒtj||||ƒt |||ƒdS(NR(ids<ÁìȡͶ×ÊÀí²Æ»Ø±¨£ºinvestType=%s,investGold=%s,rewardIndex=%ss1    ¸ÃÀàÐÍûÓÐͶ×ʹý£¬ÎÞ·¨ÁìÈ¡»Ø±¨£¡investType=%ss+    µÈ¼¶²»¹»%s£¬ÎÞ·¨ÁìÈ¡»Ø±¨£¡investType=%ss8    ÎÞ·¨ÁìÈ¡»Ø±¨£¡ Ö»ÄÜÁìÈ¡µ±ÌìµÄ£¬curDay=%s£¬needDay=%sis/    ÁìȡͶ×ÊÀí²Æ»Ø±¨, rewardDict=%s, Ã»ÓÐkey=%sis@    11ÁìȡͶ×ÊÀí²Æ»Ø±¨, ÒÑÁìÈ¡¹ý£¡ investType=%s, rewardIndex=%ss>    ÁìȡͶ×ÊÀí²Æ»Ø±¨, ÒÑÁìÈ¡¹ý£¡ investType=%s, rewardIndex=%ss&    ÁìȡͶ×ÊÀí²Æ»Ø±¨ rewardItemList=%st showSysInfo(!R2R?R@RAt RewardIndexRR,RRRRCt    GetNeedLVRXt
GetNeedDayRR-RRRRGRTtappendR
t ItemControlertGivePlayerItemRdtrptItemt rptAnyWhereR!RtDataRecordPacktDR_GetGoldInvestRewardR (R7RIRJRR"t rewardIndexR8RKtneedLVtneedDayR$t
rewardDictRt
rewardListtrewardItemListtrewardValueKeytlastDayGotDatatlastGotAwardListR:R;R<tnewCnttitemInfo((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pytOnGetGoldInvestRewardsp                  5
c
Cs:t|tj|ƒ}| r(| r(dStjƒ}|jƒ||_t||ƒ|_||_    g|_
t j di|d6t ƒ}|s‘dSx€|D]x}|jƒd}|dkrÌ||krÌq˜ntjƒ}    ||    _t|tj||fƒ|    _|j
j|    ƒq˜Wt|j
ƒ|_tj||ƒdS(NR(tTypeidiÿÿÿÿ(RRRtChPyNetSendPackttagMCGoldInvestInfotClearRARtCurDayRBtInvestRewardListRtGetIpyGameDataByConditionR!R0ttagMCInvestRewardRqRt RewardValueRtR1tRewardRecordCntt NetPackCommont SendFakePack(
RR"R7RRKtinvestInfoPacktipyGameDataListR8R{t investReward((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyR ds. 
                  (RR‘RˆRdRR2RRuRyRgttimeRR
RRRR RQRRRHR†tFalseR (((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyt<module>s,                        
             /    @             5    L