作者 陈志颖

test:年榜

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