hxp
2022-07-22 0018357c8b680025d3c0fa5509cbc2ed06dc8603
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTurntable.py
@@ -59,7 +59,6 @@
            continue
        
        # 过天重置
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TurntableLoginState % actNum, 0)
        AddTurntableUseCountByLogin(curPlayer, actNum)
        Sync_TurntablePlayerInfo(curPlayer, actNum)
        
@@ -132,9 +131,13 @@
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