fix return value
This commit is contained in:
		| @ -68,9 +68,9 @@ func (f *form) Parse(ctx *gin.Context, receiver interface{}) error { | ||||
| 			return errors.New(ctx.ContentType() + " is not support") | ||||
| 		} | ||||
| 	} else { | ||||
| 		return errors.New(method + " is not support") | ||||
| 		return errors.New(method + " : request method is not support") | ||||
| 	} | ||||
| 	// 设置默认值 | ||||
| 	defaults.SetDefaults(receiver) | ||||
| 	return errors.New(method + " : request method is not support") | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user