Selaa lähdekoodia

更新规则链创建

liuxiulin 2 vuotta sitten
vanhempi
commit
3c78a93c54
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      services/knowoapi/services/rule_chain.go

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

@@ -80,7 +80,7 @@ func (a ruleChainService) create(params *models.RuleChainParams) (firstNodeId st
 			ruleNode := models.RuleNode{
 				RecordId:      guid.S(),
 				RuleChainID:   params.RecordId,
-				Configuration: v.MustToJsonString(),
+				Configuration: v.GetString("data"),
 				Type:          nodeType[v.GetString("data.type")],
 				Name:          v.GetString("data.name"),
 				DebugModel:    true,