From 3833fd388473a14bddb352104eab8f9cb44e5145 Mon Sep 17 00:00:00 2001 From: xinian Date: Thu, 5 Mar 2026 16:04:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DScan=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/config/service/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config/service/task.go b/modules/config/service/task.go index c81ee03c7..4027c1160 100644 --- a/modules/config/service/task.go +++ b/modules/config/service/task.go @@ -25,7 +25,7 @@ func NewTaskService() *TaskService { } func (s *TaskService) Get(id, os int) *model.TaskConfig { var res *model.TaskConfig - dbm_enable(s.Model).Where("task_id", id).Where("out_state", os).Scan(res) + dbm_enable(s.Model).Where("task_id", id).Where("out_state", os).Scan(&res) // var res *model.TaskConfig // for _, v := range item { // if v.OutState == os {