|
|
@@ -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
|