v1.0.3
CI / build-deploy (pull_request) Failing after 2m52s
CI / notify-on-failure (pull_request) Successful in 0s

This commit is contained in:
Timi
2026-08-01 01:13:08 +08:00
parent ce22661a9b
commit 15bf9bd688
31 changed files with 131 additions and 145 deletions
@@ -200,10 +200,10 @@ public class CaptchaManager {
String cacheKey = CACHE_KEY.formatted(uniqueId);
String cacheValue = redisCaptcha.get(cacheKey);
if (TimiJava.isEmpty(cacheValue)) {
throw new TimiException(TimiCode.ARG_EXPIRED).msgKey("captcha.expire");
throw new TimiException(TimiCode.ARG_EXPIRED, "captcha.expire");
}
if (!value.trim().equalsIgnoreCase(cacheValue)) {
throw new TimiException(TimiCode.RESULT_BAD).msgKey("captcha.error");
throw new TimiException(TimiCode.RESULT_BAD, "captcha.error");
}
// 清除缓存
redisCaptcha.destroy(cacheKey);