fix:游戏记录时间

This commit is contained in:
sk 2024-12-16 10:18:07 +08:00
parent 9c3f3ea191
commit 8649fa66e4
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ func (this *Player) ReportGameEvent(param *ReportGameEventParam) *ReportGameEven
isNew = 1 isNew = 1
} }
if param.GameTime < 0 { if param.GameTime <= 0 {
param.GameTime = int64(time.Now().Sub(this.scene.GameNowTime).Seconds()) param.GameTime = int64(time.Now().Sub(this.scene.GameNowTime).Seconds())
} }
if param.GameTime < 0 { if param.GameTime < 0 {