作者 郑周

1. 时间优化

@@ -45,7 +45,8 @@ func NextTime(now0 time.Time, start time.Time, kpiCycle int) time.Time { @@ -45,7 +45,8 @@ func NextTime(now0 time.Time, start time.Time, kpiCycle int) time.Time {
45 var nextTime time.Time 45 var nextTime time.Time
46 switch kpiCycle { 46 switch kpiCycle {
47 case domain.KpiCycleDay: 47 case domain.KpiCycleDay:
48 - nextTime = timeconv.AddDate(now0, 0, 0, 0) // 当前时间的0点开始发送 48 + nextTime = now0 // 当前时间的0点开始发送
  49 + //nextTime = timeconv.AddDate(now0, 0, 0, 0) // 当前时间的0点开始发送
49 break 50 break
50 case domain.KpiCycleWeek: 51 case domain.KpiCycleWeek:
51 offsetSeconds := int64(now0.Sub(start0).Seconds()) 52 offsetSeconds := int64(now0.Sub(start0).Seconds())