Compare commits

..

2 Commits

Author SHA1 Message Date
sk 573a59045b Merge branch 'develop' into release 2024-06-19 19:43:35 +08:00
sk 168c2cc8c3 比赛场开赛时间判断 2024-06-19 19:04:51 +08:00
1 changed files with 2 additions and 1 deletions

View File

@ -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