fix: 修复Scan参数引用错误
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-05 16:04:28 +08:00
committed by cnb
parent 8efaab48fd
commit 3833fd3884

View File

@@ -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 {