Pre Merge pull request !292 from 高雄/yanzm

This commit is contained in:
高雄 2025-04-14 08:11:21 +00:00 committed by Gitee
commit 3387680eaa
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -110,7 +110,7 @@ public class FileController {
long timeDifference = DateUtils.calculateCurrentTimeDifference(captchaGenerateTime);
// 验证码为空且生成验证码超过50秒重新生成验证码
if (timeDifference > 50 && ObjectUtils.isEmpty(captchaCode)) {
if (timeDifference > 50 || ObjectUtils.isEmpty(captchaCode)) {
captchaCode = CaptchaUtil.generateCaptchaCode();
// 更新验证码
WebUtils.setSessionAttr(request, CAPTCHA_CODE, captchaCode);