update
This commit is contained in:
@@ -199,7 +199,7 @@ func init() {
|
|||||||
Admin: true,
|
Admin: true,
|
||||||
Cron: "*/5 * * * *",
|
Cron: "*/5 * * * *",
|
||||||
Handle: func(s core.Sender) interface{} {
|
Handle: func(s core.Sender) interface{} {
|
||||||
if s.GetImType() == "" && qinglong.Get("autoCronHideDuplicate", "false") == "false" {
|
if s.GetImType() == "" && qinglong.Get("autoCronHideDuplicate", "true") == "false" {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
w := func(s string) int {
|
w := func(s string) int {
|
||||||
@@ -226,6 +226,9 @@ func init() {
|
|||||||
if crons[i].IsDisabled != 0 {
|
if crons[i].IsDisabled != 0 {
|
||||||
continue
|
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 {
|
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