From 168c2cc8c3d44bbbddd57c0f473870810332bc26 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Wed, 19 Jun 2024 19:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=94=E8=B5=9B=E5=9C=BA=E5=BC=80=E8=B5=9B?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/tournament.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldsrv/tournament.go b/worldsrv/tournament.go index be514e9..31ce55b 100644 --- a/worldsrv/tournament.go +++ b/worldsrv/tournament.go @@ -1616,7 +1616,8 @@ func (this *Tournament) FixMatchTimeStamp(d *webapiproto.GameMatchDate) { for _, v := range d.MatchTimeWeek { if v == int32(week) { stSub := st.Unix() - nowtool.New(st).BeginningOfDay().Unix() - sub := d.MatchTimeStamp[1] - d.MatchTimeStamp[0] + etSub := et.Unix() - nowtool.New(et).BeginningOfDay().Unix() + sub := etSub - stSub d.MatchTimeStamp[0] = nowtool.New(bTs).BeginningOfDay().Add(time.Duration(stSub) * time.Second).Unix() d.MatchTimeStamp[1] = d.MatchTimeStamp[0] + sub