From 5d0e66b39e05fcb1d4c14cbee0549c80a8eb1ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=83=E8=92=99?= <1209103220@qq.com> Date: Mon, 15 Dec 2025 18:15:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(task):=20=E4=BF=AE=E5=A4=8D=E6=B8=A0?= =?UTF-8?q?=E9=81=93=E9=85=8D=E7=BD=AE=E5=A4=9A=E4=B8=AAkey=E6=97=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E4=BB=BB=E5=8A=A1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/task_video.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/controller/task_video.go b/controller/task_video.go index 86095307..d7c19e62 100644 --- a/controller/task_video.go +++ b/controller/task_video.go @@ -74,7 +74,13 @@ func updateVideoSingleTask(ctx context.Context, adaptor channel.TaskAdaptor, cha logger.LogError(ctx, fmt.Sprintf("Task %s not found in taskM", taskId)) return fmt.Errorf("task %s not found", taskId) } - resp, err := adaptor.FetchTask(baseURL, channel.Key, map[string]any{ + key := channel.Key + + privateData := task.PrivateData + if privateData.Key != "" { + key = privateData.Key + } + resp, err := adaptor.FetchTask(baseURL, key, map[string]any{ "task_id": taskId, "action": task.Action, }, proxy)