This commit is contained in:
赵津 2021-04-08 23:29:54 +08:00 committed by GitHub
commit d949ba2a12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -308,4 +308,12 @@ public abstract class Captcha extends Randoms {
public void setCharType(int charType) {
this.charType = charType;
}
/**
* 设置自定义验证码使用方来确保验证码的随机性比如使用方有一个需要需要根据用户的账号或者手机号随机几位来生成验证码就可以通过该方法设置验证码来实现该需求
* @param chars
*/
public void setChars(String chars) {
this.chars = chars;
}
}