fix return value

This commit is contained in:
白茶清欢 2024-09-20 17:37:03 +08:00
parent 5abd91f947
commit c4d41a9d4e
1 changed files with 2 additions and 2 deletions

View File

@ -68,9 +68,9 @@ func (f *form) Parse(ctx *gin.Context, receiver interface{}) error {
return errors.New(ctx.ContentType() + " is not support") return errors.New(ctx.ContentType() + " is not support")
} }
} else { } else {
return errors.New(method + " is not support") return errors.New(method + " : request method is not support")
} }
// 设置默认值 // 设置默认值
defaults.SetDefaults(receiver) defaults.SetDefaults(receiver)
return errors.New(method + " : request method is not support") return nil
} }