新增aj.captcha国际化配置、增加滑块样式

This commit is contained in:
gaoqr
2025-11-24 17:48:30 +08:00
parent c2181de374
commit a91b082ee1
25 changed files with 41 additions and 7 deletions
@@ -338,15 +338,17 @@ jwt:
aj:
captcha:
i18n.enabled: true
i18n.prefx: aj.captcha.
jigsaw: classpath:images/my-jigsaw # 滑动验证,底图路径,不配置将使用默认图片;以 classpath: 开头,取 resource 目录下路径
pic-click: classpath:images/my-pic-click # 滑动验证,底图路径,不配置将使用默认图片;以 classpath: 开头,取 resource 目录下路径
cache-type: redis # 缓存 local/redis...
cache-number: 1000 # local 缓存的阈值,达到这个值,清除缓存
timing-clear: 180 # local定时清除过期缓存(单位秒),设置为0代表不执行
type: clickWord # 验证码类型 default两种都实例化。 blockPuzzle 滑块拼图 clickWord 文字点选
type: blockPuzzle # 验证码类型 default两种都实例化。 blockPuzzle 滑块拼图 clickWord 文字点选
water-mark: 晨丰科技 # 右下角水印文字(我的水印),可使用 https://tool.chinaz.com/tools/unicode.aspx 中文转 UnicodeLinux 可能需要转 unicode
interference-options: 0 # 滑动干扰项(0/1/2)
req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
req-frequency-limit-enable: true # 接口请求次数一分钟限制是否开启 true|false
req-get-lock-limit: 5 # 验证失败5次,get接口锁定
req-get-lock-seconds: 10 # 验证失败后,锁定时间间隔
req-get-minute-limit: 30 # get 接口一分钟内请求数限制
@@ -359,15 +359,17 @@ jwt:
aj:
captcha:
i18n.enabled: true
i18n.prefx: aj.captcha.
jigsaw: classpath:images/my-jigsaw # 滑动验证,底图路径,不配置将使用默认图片;以 classpath: 开头,取 resource 目录下路径
pic-click: classpath:images/my-pic-click # 滑动验证,底图路径,不配置将使用默认图片;以 classpath: 开头,取 resource 目录下路径
cache-type: redis # 缓存 local/redis...
cache-number: 1000 # local 缓存的阈值,达到这个值,清除缓存
timing-clear: 180 # local定时清除过期缓存(单位秒),设置为0代表不执行
type: clickWord # 验证码类型 default两种都实例化。 blockPuzzle 滑块拼图 clickWord 文字点选
type: blockPuzzle # 验证码类型 default两种都实例化。 blockPuzzle 滑块拼图 clickWord 文字点选
water-mark: 晨丰科技 # 右下角水印文字(我的水印),可使用 https://tool.chinaz.com/tools/unicode.aspx 中文转 UnicodeLinux 可能需要转 unicode
interference-options: 0 # 滑动干扰项(0/1/2)
req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
req-frequency-limit-enable: true # 接口请求次数一分钟限制是否开启 true|false
req-get-lock-limit: 5 # 验证失败5次,get接口锁定
req-get-lock-seconds: 10 # 验证失败后,锁定时间间隔
req-get-minute-limit: 30 # get 接口一分钟内请求数限制
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

@@ -104,3 +104,13 @@ global.error.request.organId.notExist=请求的组织标识未传递,请进行
global.org.product.not.exist=账号登录异常,套餐信息不存在,请重新登陆
global.org.product.expired=组织产品套餐已过期,请续费后继续使用
global.not.login=账号未登录
aj.captcha.6110=验证码已失效,请重新获取。
aj.captcha.6111=验证失败。
aj.captcha.6112=获取验证码失败,请联系管理员。
aj.captcha.6113=底图未初始化成功,请检查路径。
aj.captcha.6201=get接口请求次数超限,请稍后再试!
aj.captcha.6206=无效请求,请重新获取验证码。
aj.captcha.6202=接口验证失败数过多,请稍后再试。
aj.captcha.6204=check接口请求次数超限,请稍后再试!
aj.captcha.6205=verify请求次数超限。
@@ -104,3 +104,13 @@ global.error.request.organId.notExist=請求的組織標識未傳遞,請進行
global.org.product.not.exist=帳號登入異常,套餐資訊不存在,請重新登入
global.org.product.expired=組織產品套餐已過期,請續費後繼續使用
global.not.login=賬號未登錄
aj.captcha.6110=驗證碼已失效,請重新獲取。
aj.captcha.6111=驗證失敗。
aj.captcha.6112=獲取驗證碼失敗,請聯繫管理員。
aj.captcha.6113=底圖未初始化成功,請檢查路徑。
aj.captcha.6201=get 接口請求次數超限,請稍後再試!
aj.captcha.6206=無效請求,請重新獲取驗證碼。
aj.captcha.6202=接口驗證失敗次數過多,請稍後再試。
aj.captcha.6204=check 接口請求次數超限,請稍後再試!
aj.captcha.6205=verify 請求次數超限。
@@ -104,3 +104,13 @@ global.error.request.organId.notExist=The requested organization ID was not prov
global.org.product.not.exist=Account login exception: product package does not exist, please log in again
global.org.product.expired=The organization's product package has expired, please renew before continuing to use the service
global.not.login=The account is not logged in
aj.captcha.6110=Captcha expired, please try again
aj.captcha.6111=Verification failed
aj.captcha.6112=Failed to get captcha, please contact administrator
aj.captcha.6113=Base map not initialized successfully, please check the path
aj.captcha.6201=GET request limit exceeded, please try again later!
aj.captcha.6206=Invalid request, please try again
aj.captcha.6202=Too many verification failures, please try again later
aj.captcha.6204=CHECK request limit exceeded, please try again later!
aj.captcha.6205=VERIFY request limit exceeded!