Merge branch 'dev_login' of git.pogorockgames.com:mango-games/server/game into dev_login

This commit is contained in:
DESKTOP-45ANQ2C\unis 2024-12-16 16:24:07 +08:00
commit 8160786ac0
1 changed files with 2 additions and 2 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 {
@ -679,7 +679,7 @@ func (this *Player) ReportGameEvent(param *ReportGameEventParam) *ReportGameEven
ModeId: this.scene.GameMode, ModeId: this.scene.GameMode,
Tax: param.Tax, Tax: param.Tax,
Amount: param.Change, Amount: param.Change,
CreateTime: this.CreateTime.Unix(), CreateTime: time.Now().Unix(),
CreateDayTime: tCreateDay.Unix(), CreateDayTime: tCreateDay.Unix(),
Out: param.Out, Out: param.Out,
In: param.In, In: param.In,