caipin 5 년 전
부모
커밋
24108ad319
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/contract_service.go

+ 1 - 1
services/contract_service.go

@@ -171,7 +171,7 @@ func (s *contractService) ValidRuleGet(ctx iris.Context) (*viewmodels.TreeSectio
 // 验证序号相关
 func (s *contractService) ValidRuleSerial(ctx iris.Context) (*viewmodels.TreeSectionContract, error) {
 	treeSectionVaild := &viewmodels.TreeSectionContract{}
-	err := ctx.ReadForm(treeSectionVaild)
+	err := ctx.ReadJSON(treeSectionVaild)
 	if err != nil {
 		log.Println("folder-ValidRule-ReadForm转换异常, error=", err)
 		return treeSectionVaild, err