比赛场开赛时间判断

This commit is contained in:
sk 2024-06-19 20:15:31 +08:00
parent 573a59045b
commit 4f6222cdc5
1 changed files with 19 additions and 3 deletions

View File

@ -1394,11 +1394,27 @@ func (this *Tournament) GetSCTMInfosPack(platform, channelName string) *tourname
tMInfo.MatchTimeWeek = append(tMInfo.MatchTimeWeek, week)
}
}
if info.MatchTimeStamp != nil && len(info.MatchTimeStamp) > 0 {
for _, stamp := range info.MatchTimeStamp {
tMInfo.MatchTimeStamp = append(tMInfo.MatchTimeStamp, stamp)
if info.MatchType == MatchTypeChampion {
week := this.getWeekDay()
// 重复时间段比赛时间
for _, v := range info.MatchTimeWeek {
if v == int32(week) {
if info.MatchTimeStamp != nil && len(info.MatchTimeStamp) > 0 {
for _, stamp := range info.MatchTimeStamp {
tMInfo.MatchTimeStamp = append(tMInfo.MatchTimeStamp, stamp)
}
}
}
}
} else {
if info.MatchTimeStamp != nil && len(info.MatchTimeStamp) > 0 {
for _, stamp := range info.MatchTimeStamp {
tMInfo.MatchTimeStamp = append(tMInfo.MatchTimeStamp, stamp)
}
}
}
if info.MatchPromotion != nil {
for _, mp := range info.MatchPromotion {
tMInfo.MatchPromotion = append(tMInfo.MatchPromotion, mp)