| | |
| | | ChConfig.Def_Cost_GoldInvest, infoDict):
|
| | | return
|
| | | #红包奖励
|
| | | if investGold == deductGold:
|
| | | if not (investType in ChConfig.InvestGoldTypeList and investGold != deductGold):
|
| | | redPacketID = IpyGameDataPY.GetFuncEvalCfg('InvestRedPackAward', 1, {}).get(investType, 0)
|
| | | if redPacketID:
|
| | | PlayerFamilyRedPacket.CreatRedPacketByID(curPlayer, redPacketID)
|
| | |
| | | PlayerControl.WorldNotify(0, 'VIPInvestmentRadio', [curPlayer.GetName()])
|
| | | elif investType in ChConfig.InvestGoldTypeList:
|
| | | PlayerControl.WorldNotify(0, 'JadeInvestmentRadio', [curPlayer.GetName(), investGold])
|
| | |
|
| | | elif investType == ChConfig.GoldInvestType_Month:
|
| | | PlayerControl.WorldNotify(0, 'MonthInvestment', [curPlayer.GetName()])
|
| | | elif investType == ChConfig.GoldInvestType_Week:
|
| | | PlayerControl.WorldNotify(0, 'WeekInPInvestment', [curPlayer.GetName()])
|
| | | |
| | | # 更新投资时时间,投资金额,重置回报记录
|
| | | curTime = GameWorld.GetCurrentTime()
|
| | | curTimeNum = GameWorld.ChangeTimeStrToNum(str(curTime)[:10], ChConfig.TYPE_Time_Format_Day)
|