Commit 4c583c52 authored by jiaorz's avatar jiaorz

验证码图片问题

parent 93b9c44d
......@@ -58,11 +58,11 @@ public class ClickWordCaptcha extends AbstractCaptcha {
int x1 = (int)point1.getX();
int y1 = (int)point1.getY();
if (Math.abs(x-x1) >= HAN_ZI_SIZE_HALF || Math.abs(y-y1) >= HAN_ZI_SIZE_HALF){
return false;
if (Math.abs(x-x1) <= HAN_ZI_SIZE_HALF && Math.abs(y-y1) <= HAN_ZI_SIZE_HALF){
return true;
}
}
return true;
return false;
}
private ClickWordCaptchaVO getImageData(BufferedImage backgroundImage) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment