From 844e3abd77fb3aedf1f736b31602c6af0764b35d Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Fri, 29 Oct 2021 12:03:15 +0800 Subject: [PATCH] update --- develop/qinglong/cron.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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) {