hch
2019-03-15 937e159f80f02bff02b218afa6c88438b0343f5f
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
@@ -196,11 +196,11 @@
        else:
            GameWorld.DebugLog("    investType = %s 已投资过,不可重复投资" % investType)
            return
    elif investType in ChConfig.InvestGoldTypeList:
        goldInvestLVLimit = IpyGameDataPY.GetFuncEvalCfg('GoldInvestLVLimit', 1, {}).get(investType, 0)
        if goldInvestLVLimit and curPlayer.GetLV() > goldInvestLVLimit:
            GameWorld.DebugLog('    仙玉投资理财 等级不能高于%s'%(goldInvestLVLimit))
            return
#    elif investType in ChConfig.InvestGoldTypeList:
#        goldInvestLVLimit = IpyGameDataPY.GetFuncEvalCfg('GoldInvestLVLimit', 1, {}).get(investType, 0)
#        if goldInvestLVLimit and curPlayer.GetLV() > goldInvestLVLimit:
#            GameWorld.DebugLog('    仙玉投资理财 等级不能高于%s'%(goldInvestLVLimit))
#            return
        
    __DoGoldInvest(curPlayer, investType, investGold, deductGold, awardData)
    return
@@ -341,7 +341,7 @@
    GameWorld.DebugLog("    领取投资理财回报 rewardItemList=%s" % (rewardItemList))
    if rewardItemList:
        for itemID, itemCnt, isBind in rewardItemList:
            ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBind, [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere], True, showSysInfo=True)
            ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere])
    
    __CheckInvestReset(curPlayer)
    # 记录领取事件