作者 陈志颖

fix:年榜时间

@@ -433,8 +433,8 @@ func (statisticsService *StatisticsService) ContributionsWealthRanking(contribut @@ -433,8 +433,8 @@ func (statisticsService *StatisticsService) ContributionsWealthRanking(contribut
433 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) 433 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
434 } else { 434 } else {
435 if len(listIntervals) == 0 { // 未配置年榜 435 if len(listIntervals) == 0 { // 未配置年榜
436 - contributionsWealthRankingQuery.StartTime = time.Date(00001, 01, 01, 0, 0, 0, 0, time.Local)  
437 - contributionsWealthRankingQuery.EndTime = time.Date(0001, 01, 01, 23, 59, 59, 0, time.Local) 436 + contributionsWealthRankingQuery.StartTime = time.Date(0001, 01, 02, 0, 0, 0, 0, time.Local)
  437 + contributionsWealthRankingQuery.EndTime = time.Date(0001, 01, 02, 23, 59, 59, 0, time.Local)
438 } else if len(listIntervals) == 1 { // 只配置了一个年榜 438 } else if len(listIntervals) == 1 { // 只配置了一个年榜
439 currentTime := time.Now().Local() 439 currentTime := time.Now().Local()
440 if currentTime.After(listIntervals[0].IntervalStartTime.Local()) && currentTime.Before(listIntervals[0].IntervalEndTime.Local()) || currentTime.Equal(listIntervals[0].IntervalStartTime.Local()) || currentTime.Equal(listIntervals[0].IntervalEndTime.Local()) { // 当前时间在榜单内 440 if currentTime.After(listIntervals[0].IntervalStartTime.Local()) && currentTime.Before(listIntervals[0].IntervalEndTime.Local()) || currentTime.Equal(listIntervals[0].IntervalStartTime.Local()) || currentTime.Equal(listIntervals[0].IntervalEndTime.Local()) { // 当前时间在榜单内