diff --git a/develop/qinglong/cron.go b/develop/qinglong/cron.go index 75fa6e1..fd303a0 100644 --- a/develop/qinglong/cron.go +++ b/develop/qinglong/cron.go @@ -195,9 +195,9 @@ func init() { if Config.Host == "" { return nil } - if s.GetImType() == "fake" && qinglong.GetBool("autoCronHideDuplicate", true) == false { - return nil - } + // if s.GetImType() == "fake" && qinglong.GetBool("autoCronHideDuplicate", true) == false { + // return nil + // } w := func(s string) int { if strings.Contains(s, "cdle") { return 20 @@ -230,6 +230,10 @@ func init() { Config.Req(CRONS, PUT, "/disable", []byte(fmt.Sprintf(`["%s"]`, crons[i].ID))) continue } + if strings.Contains(crons[i].Command, "1111") && !strings.Contains(crons[i].Command, "cdle") { + Config.Req(CRONS, PUT, "/disable", []byte(fmt.Sprintf(`["%s"]`, crons[i].ID))) + continue + } if task, ok := tasks[crons[i].Name]; ok { var dup Cron if w(task.Command) > w(crons[i].Command) {