From 07353768dd88d37ab7d7c75ae73f21dd162524b6 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 04 七月 2019 19:09:54 +0800
Subject: [PATCH] 4407 【主干】vip投资结束后(第八天界面报错)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
index cae352a..1b1e4af 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
@@ -56,6 +56,7 @@
 #  @return
 def OnLogin(curPlayer):
     CheckOldInvestMail(curPlayer)
+    __CheckInvestReset(curPlayer)
     for iType in ChConfig.GoldInvestTypeList:
         Sync_GoldInvestInfo(curPlayer, iType)
     return
@@ -82,7 +83,7 @@
     for investType in ChConfig.CanRepeatInvestType:
         investGoldRecord = __GetPDictValue(curPlayer, ChConfig.Def_PDict_GoldInvest_Gold % investType)
         if not investGoldRecord:
-            return
+            continue
         curDay = __GetInvestCurDay(curPlayer, investType)
         investMaxDayDict = IpyGameDataPY.GetFuncEvalCfg('InvestMaxDay')
         maxDay = investMaxDayDict.get(str(investType), 0)

--
Gitblit v1.8.0