mirror of https://github.com/allinssl/allinssl
修改工作流上下文
parent
f8f222e740
commit
6e2fe8cf52
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue