From c766af3bd8e83b53197738a0d2128afb1eee499e Mon Sep 17 00:00:00 2001 From: dengbiao Date: Tue, 29 Oct 2024 15:31:09 +0800 Subject: [PATCH] 1 --- app/task/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/task/init.go b/app/task/init.go index e60475e..88fa64e 100644 --- a/app/task/init.go +++ b/app/task/init.go @@ -45,7 +45,7 @@ func Run() { func MapCrontabCfg(eg *xorm.Engine) *[]model.SysCfg { var c []model.SysCfg // 数据库查询如果有下划线会认为是一个任意字符 - if err := eg.Where("`k` LIKE 'cron\\_%' AND val != ''").Cols("`key`,`val`").Find(&c); err != nil || len(c) == 0 { + if err := eg.Where("`k` LIKE 'cron\\_%' AND val != ''").Cols("`k`,`v`").Find(&c); err != nil || len(c) == 0 { logx.Warn(err) return nil }