This commit is contained in:
Looly
2019-09-28 03:13:27 +08:00
parent daf85caf9e
commit 596a4f1e57
110 changed files with 535 additions and 617 deletions

View File

@@ -155,7 +155,7 @@ public class ShearCaptcha extends AbstractCaptcha {
* 干扰线
*
* @param g {@link Graphics}
* @param x1x1
* @param x1 x1
* @param y1 y1
* @param x2 x2
* @param y2 y2
@@ -183,8 +183,8 @@ public class ShearCaptcha extends AbstractCaptcha {
int dy = (int) ddy;
// Now we can compute the corner points...
int xPoints[] = new int[4];
int yPoints[] = new int[4];
int[] xPoints = new int[4];
int[] yPoints = new int[4];
xPoints[0] = x1 + dx;
yPoints[0] = y1 + dy;

View File

@@ -14,7 +14,7 @@ public interface CodeGenerator extends Serializable{
*
* @return 验证码
*/
public String generate();
String generate();
/**
* 验证用户输入的字符串是否与生成的验证码匹配<br>
@@ -24,5 +24,5 @@ public interface CodeGenerator extends Serializable{
* @param userInputCode 用户输入的验证码
* @return 是否验证通过
*/
public boolean verify(String code, String userInputCode);
boolean verify(String code, String userInputCode);
}