mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
优化
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
---
|
||||
系统在线文档
|
||||
---
|
||||
* 文档地址 :https://xm-go.gitee.io/pandax-docs/
|
||||
* 文档地址 :http://www.pandazhuan.cn/
|
||||
|
||||
**> 未来会补充文档和视频,方便友友们使用!**
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"pandax/pkg/rule_engine/manifest"
|
||||
"pandax/pkg/rule_engine/message"
|
||||
"pandax/pkg/rule_engine/nodes"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// ruleChainInstance is rulechain's runtime instance that manage all nodes in this chain,
|
||||
@@ -62,7 +63,11 @@ func newInstanceWithManifest(m *manifest.Manifest) (*ruleChainInstance, []error)
|
||||
errs = append(errs, err)
|
||||
continue
|
||||
}
|
||||
originalNode.AddLinkedNode(edge.Properties["type"].(string), targetNode)
|
||||
//可以有多个类型
|
||||
split := strings.Split(edge.Properties["type"].(string), "/")
|
||||
for _, ty := range split {
|
||||
originalNode.AddLinkedNode(ty, targetNode)
|
||||
}
|
||||
}
|
||||
for name, node := range r.nodes {
|
||||
targetNodes := node.GetLinkedNodes()
|
||||
|
||||
Reference in New Issue
Block a user