浏览代码

feat:修改方法

wangchuanjin 2 年之前
父节点
当前提交
09ab423bec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      p/public.go

+ 1 - 1
p/public.go

@@ -722,7 +722,7 @@ func TimesIsOver(times []string, hour int) (bool, time.Time, time.Time) {
 		return true, start, end
 	} else {
 		start := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.Local)
-		return hour > lastHour, start, now
+		return hour-1 == lastHour, start, now
 	}
 }