From 91a6436ad74eb03116176d1ef6a536c790e514ae Mon Sep 17 00:00:00 2001 From: qhd <1766646056@qq.com> Date: Tue, 23 Jun 2026 10:42:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=BF=E6=8D=A2CDN=E5=89=8D=E7=BC=80?= =?UTF-8?q?=E4=B8=BAminio=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复视频URL拼接时硬编码CDN地址的问题,改为从配置中动态读取minio前缀。 --- workflow/service/flow/lambda_node.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/service/flow/lambda_node.go b/workflow/service/flow/lambda_node.go index 279b4cf..520b973 100644 --- a/workflow/service/flow/lambda_node.go +++ b/workflow/service/flow/lambda_node.go @@ -284,6 +284,7 @@ func VideoModelLambda(ctx context.Context, input any) (any, error) { } urlPrefix, err := utils.GetFileAddressPrefix(ctx) + newS := strings.ReplaceAll(urlPrefix, "http://cdn.redpowerfuture.com", g.Cfg().MustGet(ctx, "minioPrefix").String()) if err != nil { return nil, err } @@ -299,7 +300,7 @@ func VideoModelLambda(ctx context.Context, input any) (any, error) { } else { outputRes = append(outputRes, node.NodeFormField{ Field: fmt.Sprintf("concat_video_url:content:%d", 0), - Value: urlPrefix + msg.FileURL, + Value: newS + msg.FileURL, Label: fmt.Sprintf("concat_video_url:content:%d", 0), Type: "string", })