hxp
2018-10-19 8ef8f8195b916de90a135e13b2135e11cb77bf86
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
76
77
78
79
80
81
82
83
`“°[c@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
dd„Z d„Z d„Z d„Zd„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__SetPDictValue1scCs9t|ƒt|ƒxtjD]}t||ƒqWdS(N(t__CheckOldGoldInvestt__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 Rt__GetInvestLVDataR
tDef_PDict_GoldInvest_AwardDatatGoldInvestType_VIP(RRt    awardData((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pytOnDayDs
 
 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_TimetxrangeRtTrue(Rt
investTypetinvestGoldRecordtcurDaytinvestMaxDayDicttmaxDayti((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyRQs    ($c Cs]tj}t|tj|ƒ}|s)dSt|tj|dƒ}tjdƒ}|t|ƒ}|j|ƒd}||kr„dSt    |tj||ƒtj
di|d6t ƒ}i}xv|D]n}    |    j ƒd}
t|tj ||
fƒ} | rÄ| |krÄt    |tj ||
f|ƒ| ||
<qÄqÄWtjd|||f|j ƒƒdS(Nit
InvestCosttInvesttTypeidsD    ÏÉÓñͶ×ʵµÎ»Òì³£ÐÞ¸´  awardData=%s, realAwardData=%s, fixInfo=%s(RtGoldInvestType_GoldRRRRRRtindexR
tGetIpyGameDataByConditionR"tGetIDRt    GameWorldtLog( RR#R$RtinvestCostDicttcostListt realAwardDatatipyGameDataListtfixInfotipyDatat rewardIndext rewardValue((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyR bs*      #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,iiiiR*idt1t    VIPInvests.    ¾É°æ±¾Í¶×ʲ¹³¥ sendDay=%s, sendItemList=%s(RRRRRRtrangeRtGetIpyGameDatat    GetRewardRtitemsRt SendMailByKeyR/tlenR0R1R
R R!(RR#R$R'R%t sendDayListt sendItemDicttdayR-R7titemListtitemIDtitemCnttisBindt sendItemListR(((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyR |s>       
     ".()!cCs¸tjƒ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|ƒ} | rVt||ƒ} |t
jkrátjdƒ} | jt|ƒd    ƒ}| |kr’tjd
| |fƒdS| |krSt|t
j||fƒ}|sÞtjd ||fƒdSqSqž|t
jgkr>| |krtjd | |fƒdS|| }
tjd | |
fƒqžtjd|ƒdSnH|t
jkržtj dƒ}|jƒ|kržtjd|ƒdSnt||||
|ƒdS(Ns%Ͷ×ÊÀí²Æ£ºinvestType=%s,investGold=%sR)s9    Í¶×ÊÀí²Æ Í¶×ʶî¶È²»´æÔÚ investGold=%s£¬ investType=%siR;is    Í¶×ÊÀí²Æ ÐèÒªVIP%sRis+    »¹ÓÐͶ×ÊÌìÊýδÁìÈ¡£¡curDay=%s,maxDay=%ssA    »¹ÓÐδÁìÈ¡µÄͶ×ʻر¨£¬²»¿ÉͶ×Ê£¡investType=%s,rewardRecord=%ss4    ÒÑͶ×ʵµ´Î=%s >= ×·¼ÓͶ×ʵµ´Î=%s ,²»¿É×·¼ÓͶ×Ê£¡s     ÒÑͶ×Ê=%s£¬×·¼ÓͶ×ÊÐè¿Û³ý=%ss*    investType = %s ÒÑͶ×ʹý£¬²»¿ÉÖØ¸´Í¶×ÊtGoldInvestLVLimits    ÏÉÓñͶ×ÊÀí²Æ µÈ¼¶²»ÄܸßÓÚ%s(R0tGetPlayerManagertGetPlayerByIndext
InvestTypet
InvestGoldtDebugLogRRRR-RRRt
GetFuncCfgtGetVIPLvRRRtCanRepeatInvestTypeRRR,tGetLVt__DoGoldInvest(R-t
clientDatattickRR#t
investGoldR2R3Rt    needVIPLVt
deductGoldR$R%R&R't rewardRecordtgoldInvestLVLimit((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyt OnGoldInvest«sd                
     
cCsNt|tj|ƒ}tjtjƒƒ}td||ƒ}|dddS(Niiii(RRR R0tChangeTimeStrToNumtGetCurrentDataTimeStrtmax(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(RRRSR?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( NRMt
DeductGoldRNtInvestRedPackAwardiitVIPInvestmentRadiotJadeInvestmentRadioi
Rs    Í¶×ʳɹ¦£¡¿Û³ý×êʯ=%s(RtDef_Cost_Reason_SonKeyRtPayMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytDef_Cost_GoldInvestRRRtPlayerFamilyRedPackettCreatRedPacketByIDRt WorldNotifytGetNameR,R0tGetCurrentTimeR]RtTYPE_Time_Format_DayR
R RRRRR!RRRO( RR#RWRYRtinfoDictt redPacketIDRat
curTimeNumR&R'R(((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyRTþ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(!R0RKRLRMt RewardIndexRR=RRRROt    GetNeedLVRSt
GetNeedDayRR>RRRR,R_tappendR
t ItemControlertGivePlayerItemRntrptItemt rptAnyWhereR"RtDataRecordPacktDR_GetGoldInvestRewardR(R-RURVRR#R8R7RWtneedLVtneedDayR%t
rewardDictRt
rewardListtrewardItemListtrewardValueKeytlastDayGotDatatlastGotAwardListRFRGRHtnewCnttitemInfo((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pytOnGetGoldInvestReward3sp                  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*R+idiÿÿÿÿ(RRRtChPyNetSendPackttagMCGoldInvestInfotClearRMRtCurDayRNtInvestRewardListRR.R"R/ttagMCInvestRewardR{Rt RewardValueR~RAtRewardRecordCntt NetPackCommont SendFakePack(
RR#R-RRWtinvestInfoPackR5R7R8t investReward((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyR€s. 
                  (RR˜RRnRR0RRRƒRqttimeRR
RRRR R R\RRRTRtFalseR(((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyt<module>s.                                          /    @             5    M