Browse Source

更新规则链管理接口

liuxiulin 2 năm trước cách đây
mục cha
commit
8fd97b66f8
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      services/knowoapi/services/rule_chain.go

+ 2 - 1
services/knowoapi/services/rule_chain.go

@@ -47,7 +47,7 @@ func (a ruleChainService) Create(ruleChain *models.RuleChain) error {
 }
 
 func (a ruleChainService) create(ruleChain *models.RuleChain) error {
-	fmt.Printf("++++++++++++++++%s+++++++++++++++", ruleChain.Cell)
+	fmt.Printf("++++++++++++++++%d+++++++++++++++", len(ruleChain.Cell))
 	if len(ruleChain.Cell) > 0 {
 		nodeMap := make(map[string]models.RuleNode)
 		for _, v := range ruleChain.Cell {
@@ -63,6 +63,7 @@ func (a ruleChainService) create(ruleChain *models.RuleChain) error {
 				}
 				if v.Data.Shape == "input-node" {
 					ruleChain.FirstRuleNodeID = ruleNode.RecordId
+					ruleNode.Name = "数据输入"
 				}
 
 				var configuration models.NodeConfiguration