From fbdcff8de4325817f33fcb211cc7456a3f2d68a2 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Mon, 27 Nov 2023 15:22:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.0.4=E3=80=91=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../roses/kernel/security/captcha/DragCaptchaService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel-d-security/security-sdk-captcha/src/main/java/cn/stylefeng/roses/kernel/security/captcha/DragCaptchaService.java b/kernel-d-security/security-sdk-captcha/src/main/java/cn/stylefeng/roses/kernel/security/captcha/DragCaptchaService.java index 845ca28a1..41b79a55d 100644 --- a/kernel-d-security/security-sdk-captcha/src/main/java/cn/stylefeng/roses/kernel/security/captcha/DragCaptchaService.java +++ b/kernel-d-security/security-sdk-captcha/src/main/java/cn/stylefeng/roses/kernel/security/captcha/DragCaptchaService.java @@ -93,8 +93,8 @@ public class DragCaptchaService implements DragCaptchaApi { // 获取缓存中存储的范围 Integer locationX = Convert.toInt(locationXString); - int beginScope = locationX - 5; - int endScope = locationX + 5; + int beginScope = locationX - 6; + int endScope = locationX + 6; // 每次验证不管成功和失败都剔除掉key cacheOperatorApi.remove(verKey);