| | |
| | |
|
| | |
|
| | | # 不可循环投资,但可追加投资
|
| | | elif investType in [ChConfig.GoldInvestType_Gold]:
|
| | | elif investType in ChConfig.InvestGoldTypeList:
|
| | | if investGoldRecord >= investGold:
|
| | | GameWorld.DebugLog(" 已投资档次=%s >= 追加投资档次=%s ,不可追加投资!"
|
| | | % (investGoldRecord, investGold))
|
| | |
| | | else:
|
| | | GameWorld.DebugLog(" investType = %s 已投资过,不可重复投资" % investType)
|
| | | return
|
| | | elif investType == ChConfig.GoldInvestType_Gold:
|
| | | goldInvestLVLimit = IpyGameDataPY.GetFuncCfg('GoldInvestLVLimit')
|
| | | if curPlayer.GetLV() > goldInvestLVLimit:
|
| | | elif investType in ChConfig.InvestGoldTypeList:
|
| | | goldInvestLVLimit = IpyGameDataPY.GetFuncEvalCfg('GoldInvestLVLimit', 1, {}).get(investType, 0)
|
| | | if goldInvestLVLimit and curPlayer.GetLV() > goldInvestLVLimit:
|
| | | GameWorld.DebugLog(' 仙玉投资理财 等级不能高于%s'%(goldInvestLVLimit))
|
| | | return
|
| | |
|
| | |
| | | PlayerFamilyRedPacket.CreatRedPacketByID(curPlayer, redPacketID)
|
| | | if investType == ChConfig.GoldInvestType_VIP:
|
| | | PlayerControl.WorldNotify(0, 'VIPInvestmentRadio', [curPlayer.GetName()])
|
| | | elif investType == ChConfig.GoldInvestType_Gold:
|
| | | elif investType in ChConfig.InvestGoldTypeList:
|
| | | PlayerControl.WorldNotify(0, 'JadeInvestmentRadio', [curPlayer.GetName(), investGold])
|
| | |
|
| | | # 更新投资时时间,投资金额,重置回报记录
|
| | |
| | | lastDayGotData = __GetPDictValue(curPlayer, rewardValueKey) # 已领取数据
|
| | |
|
| | | if lastDayGotData:
|
| | | if investType == ChConfig.GoldInvestType_Gold:
|
| | | if investType in ChConfig.InvestGoldTypeList:
|
| | | if awardData > lastDayGotData:
|
| | | lastGotAwardList = rewardDict[str(lastDayGotData)]
|
| | | rewardItemList = []
|