作者 Administrator

合并分支 'test' 到 'master'

1. 时间优化



查看合并请求 !11
... ... @@ -45,7 +45,8 @@ 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, 0) // 当前时间的0点开始发送
nextTime = now0 // 当前时间的0点开始发送
//nextTime = timeconv.AddDate(now0, 0, 0, 0) // 当前时间的0点开始发送
break
case domain.KpiCycleWeek:
offsetSeconds := int64(now0.Sub(start0).Seconds())
... ...