func (c *Controller) IntMax(fieldName string, p interface{}, m int) int {
	if p == nil {
		p = ""
	}
	value, ok := c.toNumber(p)
	if ok == false {
		panic((&ValidationError{}).New(fieldName + "必须是数字."))
	}
	b := c.Validate.Max(value, m)
	if b == false {
		panic((&ValidationError{}).New(fieldName + "最大值为" + strconv.Itoa(m)))
	}
	return value
}
func (c *Controller) IntMax(fieldName string, p interface{}, m int) int {
	if p == nil {
		p = ""
	}
	value, ok := c.toNumber(p)
	if ok == false {
		panic((&ValidationError{}).New(fieldName + "必须是数字."))
	}
	b := c.Validate.Max(value, m)
	if b == false {
		panic((&ValidationError{}).New(fieldName + "最大值为" + strconv.Itoa(m)))
	}
	return value
}
// IntMax  param must be a integer, and range is [,m]