...
|
...
|
@@ -45,7 +45,7 @@ func NextTime(now0 time.Time, start time.Time, kpiCycle int) time.Time { |
|
|
var nextTime time.Time
|
|
|
switch kpiCycle {
|
|
|
case domain.KpiCycleDay:
|
|
|
nextTime = timeconv.AddDate(now0, 0, 0, 1) // 当前时间的下一天0点开始发送
|
|
|
nextTime = timeconv.AddDate(now0, 0, 0, 0) // 当前时间的0点开始发送
|
|
|
break
|
|
|
case domain.KpiCycleWeek:
|
|
|
offsetSeconds := int64(now0.Sub(start0).Seconds())
|
...
|
...
|
|