Skip to content

Commit

Permalink
✏️ 小修正
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Nov 25, 2021
1 parent 0185376 commit 37d27e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin_moyu/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 37d27e0

Please sign in to comment.