This commit is contained in:
cdle
2021-10-28 19:26:11 +08:00
parent 26ccce6dec
commit 4e0acfc76d
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ func init() {
cron := &Carrier{
Get: "data._id",
}
if err := Config.Req(cron, CRONS, POST, []byte(`{"name":"sillyGirl临时创建任务","command":"task `+s.Get()+`","schedule":" 1 1 1 1 1"}`)); err != nil {
if err := Config.Req(cron, CRONS, POST, []byte(`{"name":"sillyGirl临时创建任务","command":"repo `+s.Get()+`","schedule":" 1 1 1 1 1"}`)); err != nil {
return err
}
if err := Config.Req(CRONS, PUT, "/run", []byte(fmt.Sprintf(`["%s"]`, cron.Value))); err != nil {