2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

feat: cron controller

This commit is contained in:
耗子
2023-07-19 00:24:41 +08:00
parent 6119626f50
commit 2a3119fe9a
6 changed files with 309 additions and 8 deletions

View File

@@ -53,7 +53,7 @@ func (r *TaskController) List(ctx http.Context) {
})
}
func (r *TaskController) TaskLog(ctx http.Context) {
func (r *TaskController) Log(ctx http.Context) {
var task models.Task
err := facades.Orm().Query().Where("id", ctx.Request().QueryInt("id")).FirstOrFail(&task)
if err != nil {