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) {