Przeglądaj źródła

feat:修改方法

wangchuanjin 2 lat temu
rodzic
commit
09ab423bec
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 	}
 }