修改工作流上下文

pull/79/head^2
zhangchenhao 2025-05-09 18:01:41 +08:00
parent f8f222e740
commit 6e2fe8cf52
1 changed files with 18 additions and 17 deletions

View File

@ -4,7 +4,6 @@ import (
"ALLinSSL/backend/public" "ALLinSSL/backend/public"
"encoding/json" "encoding/json"
"fmt" "fmt"
"strings"
"sync" "sync"
"time" "time"
) )
@ -192,13 +191,15 @@ func resolveInputs(inputs []WorkflowNodeParams, ctx *ExecutionContext) map[strin
for _, input := range inputs { for _, input := range inputs {
if input.FromNodeID != "" { if input.FromNodeID != "" {
if val, ok := ctx.GetOutput(input.FromNodeID); ok { if val, ok := ctx.GetOutput(input.FromNodeID); ok {
switch strings.Split(strings.TrimPrefix(input.FromNodeID, "-"), "-")[0] { // 暂时没有新的类型可以先写死
case "apply": // switch strings.Split(strings.TrimPrefix(input.FromNodeID, "-"), "-")[0] {
input.Name = "certificate" // case "apply":
case "upload": // input.Name = "certificate"
input.Name = "certificate" // case "upload":
} // input.Name = "certificate"
resolved[input.Name] = val // }
// resolved[input.Name] = val
resolved["certificate"] = val
} }
} }
} }