...
|
...
|
@@ -441,8 +441,8 @@ func (statisticsService *StatisticsService) ContributionsWealthRanking(contribut |
|
|
contributionsWealthRankingQuery.StartTime = listIntervals[0].IntervalStartTime.Local()
|
|
|
contributionsWealthRankingQuery.EndTime = listIntervals[0].IntervalEndTime.Local()
|
|
|
} else { // 当前时间处于空档期
|
|
|
contributionsWealthRankingQuery.StartTime = time.Date(time.Now().Local().Year(), time.Now().Local().Month(), time.Now().Local().Day(), 0, 0, 0, 0, time.Local)
|
|
|
contributionsWealthRankingQuery.EndTime = time.Date(time.Now().Local().Year(), time.Now().Local().Month(), time.Now().Local().Day(), 23, 23, 23, 23, time.Local)
|
|
|
contributionsWealthRankingQuery.StartTime = time.Date(0001, 01, 02, 0, 0, 0, 0, time.Local)
|
|
|
contributionsWealthRankingQuery.EndTime = time.Date(0001, 01, 02, 23, 59, 59, 0, time.Local)
|
|
|
}
|
|
|
} else { // 配置了多个年榜
|
|
|
// 判断当前时间是否在榜单里
|
...
|
...
|
@@ -453,8 +453,8 @@ func (statisticsService *StatisticsService) ContributionsWealthRanking(contribut |
|
|
contributionsWealthRankingQuery.EndTime = listInterval.IntervalEndTime.Local()
|
|
|
break
|
|
|
} else { // 当前时间处于空档期
|
|
|
contributionsWealthRankingQuery.StartTime = time.Date(time.Now().Local().Year(), time.Now().Local().Month(), time.Now().Local().Day(), 0, 0, 0, 0, time.Local)
|
|
|
contributionsWealthRankingQuery.EndTime = time.Date(time.Now().Local().Year(), time.Now().Local().Month(), time.Now().Local().Day(), 23, 59, 59, 0, time.Local)
|
|
|
contributionsWealthRankingQuery.StartTime = time.Date(0001, 01, 02, 0, 0, 0, 0, time.Local)
|
|
|
contributionsWealthRankingQuery.EndTime = time.Date(0001, 01, 02, 23, 59, 59, 0, time.Local)
|
|
|
break
|
|
|
}
|
|
|
}
|
...
|
...
|
|