update
This commit is contained in:
@@ -195,9 +195,7 @@ func init() {
|
|||||||
if Config.Host == "" {
|
if Config.Host == "" {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
// if s.GetImType() == "fake" && qinglong.GetBool("autoCronHideDuplicate", true) == false {
|
|
||||||
// return nil
|
|
||||||
// }
|
|
||||||
w := func(s string) int {
|
w := func(s string) int {
|
||||||
if strings.Contains(s, "cdle") {
|
if strings.Contains(s, "cdle") {
|
||||||
return 20
|
return 20
|
||||||
@@ -234,6 +232,10 @@ func init() {
|
|||||||
Config.Req(CRONS, PUT, "/disable", []byte(fmt.Sprintf(`["%s"]`, crons[i].ID)))
|
Config.Req(CRONS, PUT, "/disable", []byte(fmt.Sprintf(`["%s"]`, crons[i].ID)))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if s.GetImType() == "fake" && qinglong.GetBool("autoCronHideDuplicate", true) == false {
|
||||||
|
// return nil
|
||||||
|
continue
|
||||||
|
}
|
||||||
if task, ok := tasks[crons[i].Name]; ok {
|
if task, ok := tasks[crons[i].Name]; ok {
|
||||||
var dup Cron
|
var dup Cron
|
||||||
if w(task.Command) > w(crons[i].Command) {
|
if w(task.Command) > w(crons[i].Command) {
|
||||||
|
|||||||
Reference in New Issue
Block a user