chore: trt to fix restore bool val #70

This commit is contained in:
duorameng
2026-04-18 13:04:53 +08:00
parent 1bd7082f33
commit 4b644e272e
17 changed files with 62 additions and 45 deletions
+1 -1
View File
@@ -287,7 +287,7 @@ func (tc *TaskController) UpdateTask(c *gin.Context) {
}
} else {
// 本地任务
if task.Enabled {
if utils.DerefBool(task.Enabled, true) {
tc.executorService.AddCronTask(task)
} else {
tc.executorService.RemoveCronTask(task.ID)