ci/cd调整
This commit is contained in:
@@ -163,7 +163,7 @@ func MergeLambda(ctx context.Context, input any) (any, error) {
|
||||
// 2. 提取所有文案:text_content_0,1,2...
|
||||
var contents []node.NodeFormField
|
||||
for i := 0; ; i++ {
|
||||
key := fmt.Sprintf("text_url_%d", i)
|
||||
key := fmt.Sprintf("text_url:%d", i)
|
||||
val, has := dataMap[key]
|
||||
if !has || val.Value == "" {
|
||||
break
|
||||
@@ -174,7 +174,7 @@ func MergeLambda(ctx context.Context, input any) (any, error) {
|
||||
// 3. 提取所有图片:image_0,1,2...
|
||||
var images []string
|
||||
for i := 0; ; i++ {
|
||||
key := fmt.Sprintf("img_url%d", i)
|
||||
key := fmt.Sprintf("img_url:%d", i)
|
||||
val, has := dataMap[key]
|
||||
if !has || val.Value == "" {
|
||||
break
|
||||
|
||||
@@ -20,6 +20,12 @@ import (
|
||||
)
|
||||
|
||||
func getNodeInfo(flowInfo *entity.FlowExecution) (htmlUrl []string, textModelName string, textResultFrom map[string]any, textModelResponse map[string]any, imgModelName string, imgResultFrom map[string]any, imgModelResponse map[string]any) {
|
||||
textModelName = ""
|
||||
textResultFrom = make(map[string]any)
|
||||
textModelResponse = make(map[string]any)
|
||||
imgModelName = ""
|
||||
imgResultFrom = make(map[string]any)
|
||||
imgModelResponse = make(map[string]any)
|
||||
// 查询节点中是否包含结果合并节点
|
||||
for _, item := range flowInfo.NodeInputParams {
|
||||
if item.NodeCode == node.NodeTypeMerge {
|
||||
|
||||
Reference in New Issue
Block a user