From 69bf695e980f57b357dc8bf2caf0f38016e949ce Mon Sep 17 00:00:00 2001 From: dengbiao Date: Tue, 29 Oct 2024 15:33:30 +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 88fa64e..8f3e6dd 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("`k`,`v`").Find(&c); err != nil || len(c) == 0 { + if err := eg.Where("`k` LIKE 'cron\\_%' AND v != ''").Cols("`k`,`v`").Find(&c); err != nil || len(c) == 0 { logx.Warn(err) return nil }