From d530b1f27e9cc53bff71381f0a2d5d9a6a065514 Mon Sep 17 00:00:00 2001 From: winspain Date: Mon, 11 Dec 2023 09:14:42 +0800 Subject: [PATCH] update cron --- lotteryGo/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lotteryGo/main.go b/lotteryGo/main.go index 39ebdf6..5ff0f36 100644 --- a/lotteryGo/main.go +++ b/lotteryGo/main.go @@ -287,7 +287,7 @@ func main() { c := cron.New() // 添加定时任务 - _, err := c.AddFunc("0 */1 20-23 * 1,3,6", run) + _, err := c.AddFunc("*/1 20-23 * * 1,3,6", run) if err != nil { fmt.Println("添加定时任务失败:", err) return