You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// SetRangCheckTextLen is a function
/**
* @Description: 设置随机验证文本长度
* @receiver cc
* @param val
*/
func (cc *Captcha) SetRangCheckTextLen(val RangeVal) {
// 检测验证文本范围最大值是否小于随机字符串的最小范围
if cc.config.rangCheckTextLen.Max > cc.config.rangTextLen.Min {
panic(fmt.Errorf("CaptchaConfig Error: RangCheckTextLen.max must be less than or equal to RangTextLen.min"))
}
cc.config.rangCheckTextLen = val
}
不应该是
if cc.config.rangCheckTextLen.Max < cc.config.rangTextLen.Min {
}
The text was updated successfully, but these errors were encountered:
不应该是
if cc.config.rangCheckTextLen.Max < cc.config.rangTextLen.Min {
}
The text was updated successfully, but these errors were encountered: