diff --git a/config.yml b/config.yml index 0d0ea0d..aa5d254 100644 --- a/config.yml +++ b/config.yml @@ -64,5 +64,8 @@ consul: jaeger: addr: 192.168.0.83:4318 -# 文件上传服务地址,与oss模块minio中的endpoint一致 -filePrefix: "http://192.168.0.83:9000" +# 文件上传服务地址,cdn访问地址 +filePrefix: "http://cdn.redpowerfuture.com" + +# 文件上传服务地址,minio内网访问地址 +minioPrefix: "http://192.168.0.83:9000" diff --git a/workflow/service/flow/lambda_node_util.go b/workflow/service/flow/lambda_node_util.go index 9d5f172..8b00ef9 100644 --- a/workflow/service/flow/lambda_node_util.go +++ b/workflow/service/flow/lambda_node_util.go @@ -505,7 +505,7 @@ func VideoConcat(ctx context.Context, videoUrls []string) (r any, err error) { } func GetFileBytesFromURL(ctx context.Context, fileUrl string) ([]byte, error) { - newS := strings.ReplaceAll(fileUrl, "http://cdn.redpowerfuture.com", g.Cfg().MustGet(ctx, "filePrefix").String()) + newS := strings.ReplaceAll(fileUrl, "http://cdn.redpowerfuture.com", g.Cfg().MustGet(ctx, "minioPrefix").String()) // 使用 GoFrame 客户端(自带超时、追踪、日志等能力) resp, err := g.Client().Get(ctx, newS) if err != nil {