From 3bdf7a0f7712aa2a981747b427d527c18df833c7 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Wed, 22 Sep 2021 20:41:15 +0800 Subject: [PATCH] update --- develop/qinglong/cron.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/develop/qinglong/cron.go b/develop/qinglong/cron.go index 5078f30..00bea38 100644 --- a/develop/qinglong/cron.go +++ b/develop/qinglong/cron.go @@ -199,7 +199,7 @@ func init() { Admin: true, Cron: "*/5 * * * *", Handle: func(s core.Sender) interface{} { - if s.GetImType() == "" && qinglong.Get("autoCronHideDuplicate", "false") == "false" { + if s.GetImType() == "" && qinglong.Get("autoCronHideDuplicate", "true") == "false" { return nil } w := func(s string) int { @@ -226,6 +226,9 @@ func init() { if crons[i].IsDisabled != 0 { continue } + if strings.Contains(crons[i].Command, "jd_disable.py") { + Req(CRONS, PUT, "/disable", []byte(fmt.Sprintf(`["%s"]`, crons[i].ID))) + } if task, ok := tasks[crons[i].Name]; ok { var dup Cron if w(task.Command) > w(crons[i].Command) {