From f71ea6ca19e49098b8411a590f8bc710dc93a76a Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Wed, 27 Nov 2024 10:04:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/player.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldsrv/player.go b/worldsrv/player.go index fad60e9..43e8513 100644 --- a/worldsrv/player.go +++ b/worldsrv/player.go @@ -1638,8 +1638,8 @@ func (this *Player) OnMiniTimer() { }) } // 长时间掉线又没有删除缓存 - 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) + if this.IsOffline() && time.Now().Sub(this.LastLogoutTime) > time.Hour*2 { + logger.Logger.Warnf("清除缓存异常 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId) } }