mirror of
https://github.com/allinssl/allinssl.git
synced 2025-12-18 10:04:01 +08:00
修改插件响应结果判断,新增跳过通知
This commit is contained in:
@@ -269,6 +269,13 @@ func RunNode(node *WorkflowNode, ctx *ExecutionContext) error {
|
||||
lastStatus := ctx.GetStatus(node.Config["fromNodeId"].(string))
|
||||
for _, branch := range node.ConditionNodes {
|
||||
if branch.Config["type"] == string(lastStatus) {
|
||||
if branch.ChildNode != nil {
|
||||
fromNodeData, ok := ctx.GetOutput(node.Config["fromNodeId"].(string))
|
||||
if !ok {
|
||||
fromNodeData = nil
|
||||
}
|
||||
branch.ChildNode.Config["fromNodeData"] = fromNodeData
|
||||
}
|
||||
err := RunNode(branch, ctx)
|
||||
if err != nil {
|
||||
return fmt.Errorf("执行条件分支失败: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user