| | |
| | | continue
|
| | |
|
| | | # 过天重置
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TurntableLoginState % actNum, 0)
|
| | | AddTurntableUseCountByLogin(curPlayer, actNum)
|
| | | Sync_TurntablePlayerInfo(curPlayer, actNum)
|
| | |
|
| | |
| | |
|
| | | def AddTurntableUseCountByLogin(curPlayer, actNum):
|
| | | ## 登录增加转盘次数
|
| | | if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TurntableLoginState % actNum):
|
| | | todayTime = GameWorld.GetTodayTime()
|
| | | loginState = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TurntableLoginState % actNum)
|
| | | if loginState == todayTime:
|
| | | GameWorld.DebugLog("登录增加转盘次数,已经增加过: actNum=%s,todayTime=%s" % (actNum, todayTime))
|
| | | return
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TurntableLoginState % actNum, 1)
|
| | | GameWorld.DebugLog("登录增加转盘次数: actNum=%s,todayTime=%s" % (actNum, todayTime))
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TurntableLoginState % actNum, todayTime)
|
| | | AddTurntableUseCount(curPlayer, actNum, 1)
|
| | | return
|
| | |
|