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 }