mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-08-20 09:26:40 +08:00
修复验证码 超过50秒不自动更新BUG
This commit is contained in:
parent
59315c3200
commit
2d8f8d7362
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user