From 71f07c2e5e9ee2aeda730015ff41098e6c27bb22 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 16 Dec 2024 15:43:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B8=B8=E6=88=8F=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=97=B6=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamesrv/base/player.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gamesrv/base/player.go b/gamesrv/base/player.go index 41cd834..7582869 100644 --- a/gamesrv/base/player.go +++ b/gamesrv/base/player.go @@ -658,7 +658,7 @@ func (this *Player) ReportGameEvent(param *ReportGameEventParam) *ReportGameEven isNew = 1 } - if param.GameTime < 0 { + if param.GameTime <= 0 { param.GameTime = int64(time.Now().Sub(this.scene.GameNowTime).Seconds()) } if param.GameTime < 0 { @@ -679,7 +679,7 @@ func (this *Player) ReportGameEvent(param *ReportGameEventParam) *ReportGameEven ModeId: this.scene.GameMode, Tax: param.Tax, Amount: param.Change, - CreateTime: this.CreateTime.Unix(), + CreateTime: time.Now().Unix(), CreateDayTime: tCreateDay.Unix(), Out: param.Out, In: param.In,