...
|
...
|
@@ -463,7 +463,7 @@ func (statisticsService *StatisticsService) ContributionsWealthRanking(contribut |
|
|
contributionsWealthRankingQuery.StartTime = time.Date(0001, 01, 02, 0, 0, 0, 0, time.Local)
|
|
|
contributionsWealthRankingQuery.EndTime = time.Date(0001, 01, 02, 0, 0, 0, 0, time.Local)
|
|
|
}
|
|
|
} else { // 配置了多个年榜,判断当前时间是否在榜单里
|
|
|
} else if len(listIntervals) > 1 { // 配置了多个年榜,判断当前时间是否在榜单里
|
|
|
//currentTime := time.Now().Local()
|
|
|
//for _, listInterval := range listIntervals {
|
|
|
// if currentTime.After(listInterval.IntervalStartTime.Local()) && currentTime.Before(listInterval.IntervalEndTime.Local()) || currentTime.Equal(listInterval.IntervalStartTime.Local()) || currentTime.Equal(listInterval.IntervalEndTime.Local()) { // 当前时间在榜单内
|
...
|
...
|
@@ -488,6 +488,9 @@ func (statisticsService *StatisticsService) ContributionsWealthRanking(contribut |
|
|
break
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
contributionsWealthRankingQuery.StartTime = time.Date(0001, 01, 02, 0, 0, 0, 0, time.Local)
|
|
|
contributionsWealthRankingQuery.EndTime = time.Date(0001, 01, 02, 0, 0, 0, 0, time.Local)
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|