Kaynağa Gözat

更新规则链管理接口

liuxiulin 2 yıl önce
ebeveyn
işleme
b00417b079
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      services/knowoapi/services/rule_chain.go

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

@@ -96,8 +96,8 @@ func (a ruleChainService) create(ruleChain *models.RuleChain) error {
 				RecordId:     guid.S(),
 				RecordId:     guid.S(),
 				RuleChainId:  ruleChain.RecordId,
 				RuleChainId:  ruleChain.RecordId,
 				FromID:       nodeMap[v.Source.Cell].RecordId,
 				FromID:       nodeMap[v.Source.Cell].RecordId,
-				FromType:     nodeMap[v.Target.Cell].Type,
-				ToID:         nodeMap[v.Source.Cell].RecordId,
+				FromType:     nodeMap[v.Source.Cell].Type,
+				ToID:         nodeMap[v.Target.Cell].RecordId,
 				ToType:       nodeMap[v.Target.Cell].Type,
 				ToType:       nodeMap[v.Target.Cell].Type,
 				RelationType: v.Data.Label,
 				RelationType: v.Data.Label,
 			})
 			})