From 37d27e07e91c7985e8a38f42fd5ad0d426107e64 Mon Sep 17 00:00:00 2001 From: fumiama Date: Thu, 25 Nov 2021 22:39:25 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20=E5=B0=8F=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_moyu/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin_moyu/run.go b/plugin_moyu/run.go index 5f4970b9..bb156351 100644 --- a/plugin_moyu/run.go +++ b/plugin_moyu/run.go @@ -14,7 +14,7 @@ func init() { // 插件主体 // 定时任务每天10点执行一次 c := cron.New() _, err := c.AddFunc("0 10 * * *", func() { sendNotice() }) - if err != nil { + if err == nil { c.Start() }