Compare commits

..

No commits in common. "56fb4612c78032d579a8dd22b867de25e3a26d9a" and "573a59045b211eb71168a44b7f270f229094b873" have entirely different histories.

1 changed files with 3 additions and 21 deletions

View File

@ -1394,29 +1394,11 @@ func (this *Tournament) GetSCTMInfosPack(platform, channelName string) *tourname
tMInfo.MatchTimeWeek = append(tMInfo.MatchTimeWeek, week)
}
}
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)
}
}
}
}
if len(tMInfo.MatchTimeStamp) == 0 {
tMInfo.MatchTimeStamp = []int64{time.Now().AddDate(0, 0, 2).Unix(), time.Now().AddDate(0, 0, 3).Unix()}
}
} 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)