Explorar o código

feat:修改方法

wangchuanjin %!s(int64=2) %!d(string=hai) anos
pai
achega
09ab423bec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	}
 }