From 503812e0e6c59a49599c164824c208df6082d7b9 Mon Sep 17 00:00:00 2001 From: zhaojin Date: Thu, 5 Sep 2019 15:06:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E7=BD=AE=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E9=AA=8C=E8=AF=81=E7=A0=81=EF=BC=8C=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=96=B9=E6=9D=A5=E7=A1=AE=E4=BF=9D=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E7=9A=84=E9=9A=8F=E6=9C=BA=E6=80=A7=EF=BC=8C=E6=AF=94=E5=A6=82?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=E7=94=A8=E6=96=B9=E6=9C=89=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E9=9C=80=E8=A6=81=E6=A0=B9=E6=8D=AE=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=9A=84=E8=B4=A6=E5=8F=B7=E6=88=96=E8=80=85=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7=E9=9A=8F=E6=9C=BA=E5=87=A0=E4=BD=8D=E6=9D=A5?= =?UTF-8?q?=E7=94=9F=E6=88=90=E9=AA=8C=E8=AF=81=E7=A0=81=EF=BC=8C=E5=B0=B1?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E9=80=9A=E8=BF=87=E8=AF=A5=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=AA=8C=E8=AF=81=E7=A0=81=EF=BC=8C=E6=9D=A5?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E8=AF=A5=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/wf/captcha/base/Captcha.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/wf/captcha/base/Captcha.java b/src/main/java/com/wf/captcha/base/Captcha.java index e38e4d4..e0459b5 100644 --- a/src/main/java/com/wf/captcha/base/Captcha.java +++ b/src/main/java/com/wf/captcha/base/Captcha.java @@ -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; + } } \ No newline at end of file