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() }