From 5a9325a2ce3e269f287e08140bd5e2a7dbd7820b Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Sat, 23 Nov 2024 09:09:48 +0800 Subject: [PATCH] no message --- worldsrv/player.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/worldsrv/player.go b/worldsrv/player.go index 8b89a42..a6172dc 100644 --- a/worldsrv/player.go +++ b/worldsrv/player.go @@ -1638,11 +1638,8 @@ func (this *Player) OnMiniTimer() { }) } // 长时间掉线又没有删除缓存 - if !this.dropTime.IsZero() && time.Now().Sub(this.dropTime).Minutes() > 20 { - logger.Logger.Errorf("清除缓存异常玩家 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId) - if this.scene != nil { - logger.Logger.Errorf("清除缓存异常玩家 sceneId:%v", this.scene.sceneId) - } + if !this.dropTime.IsZero() && this.scene == nil && time.Now().Sub(this.dropTime).Minutes() > 20 { + logger.Logger.Errorf("清除缓存异常 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId) } }