update
This commit is contained in:
@@ -71,7 +71,7 @@ func init() {
|
|||||||
cron := &Carrier{
|
cron := &Carrier{
|
||||||
Get: "data._id",
|
Get: "data._id",
|
||||||
}
|
}
|
||||||
if err := Config.Req(cron, CRONS, POST, []byte(`{"name":"sillyGirl临时创建任务","command":"repo `+s.Get()+`","schedule":" 1 1 1 1 1"}`)); err != nil {
|
if err := Config.Req(cron, CRONS, POST, []byte(`{"name":"sillyGirl临时创建任务","command":"ql repo `+s.Get()+`","schedule":" 1 1 1 1 1"}`)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := Config.Req(CRONS, PUT, "/run", []byte(fmt.Sprintf(`["%s"]`, cron.Value))); err != nil {
|
if err := Config.Req(CRONS, PUT, "/run", []byte(fmt.Sprintf(`["%s"]`, cron.Value))); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user