| | |
| | | # @return
|
| | | def OnLogin(curPlayer):
|
| | | CheckOldInvestMail(curPlayer)
|
| | | __CheckInvestReset(curPlayer)
|
| | | for iType in ChConfig.GoldInvestTypeList:
|
| | | Sync_GoldInvestInfo(curPlayer, iType)
|
| | | return
|
| | |
| | | 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)
|