liuxiulin il y a 2 ans
Parent
commit
861e036a93

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

@@ -1,6 +1,7 @@
 package controllers
 
 import (
+	"fmt"
 	"github.com/kataras/iris"
 	"sparrow/pkg/models"
 	"sparrow/services/knowoapi/services"
@@ -94,6 +95,7 @@ func (a *RuleChainController) PutChange() {
 		badRequest(a.Ctx, err)
 		return
 	}
+	fmt.Println(params.RecordId, params.Root, params.VendorId)
 	if params.VendorId == "" {
 		params.VendorId = a.Token.getVendorID(a.Ctx)
 	}

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

@@ -237,6 +237,7 @@ func (a ruleChainService) UpdateChainRoot(params *models.ChangeRootParams) error
 	if params.Root {
 		isRoot = 1
 	}
+	fmt.Println(params.RecordId, params.Root, params.VendorId)
 	_, err := a.model.RuleChain.UpdateChainRoot(params.VendorId, params.RecordId, isRoot)
 	if err != nil {
 		return err