public void ClearOfflineData(ServerSession session) { PlayerData playerData = cacheSvc.GetPlayerDataBySession(session); if (playerData != null) { playerData.time = timerSvc.GetNowTime(); if (cacheSvc.UpdatePlayerData(playerData.id, playerData) == false) { Common.Log("Update offline time error", LogType.Error); } cacheSvc.AcctOffline(session); } }