实现ReleaseFeedWeightTask

This commit is contained in:
2025-09-25 11:17:13 +08:00
parent f6941fe002
commit 50aac8d7e5
7 changed files with 142 additions and 18 deletions

View File

@@ -34,6 +34,7 @@ func (d *DelayTask) Execute() error {
return fmt.Errorf("任务 %v: 参数不全", d.executionTask.TaskID)
}
// TODO 定义成结构体放model包中
var params map[string]interface{}
if err := json.Unmarshal(d.executionTask.Task.Parameters, &params); err != nil {
d.logger.Errorf("任务 %v: 解析参数失败: %v", d.executionTask.TaskID, err)