update
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user