From 8b097af195e5b0056eaad06f199cd1d291821912 Mon Sep 17 00:00:00 2001 From: 佟明键 <tongmingjian@sinosoft.com.cn> Date: 星期四, 24 二月 2022 12:39:28 +0800 Subject: [PATCH] update 优化随机数生成方式 避免容易生成两个相同随机数的问题 --- ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java | 30 ++++++++++++++---------------- 1 files changed, 14 insertions(+), 16 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java index e3334ae..2345c20 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java @@ -1,16 +1,14 @@ -package com.ruoyi.common.exception.user; - -/** - * 楠岃瘉鐮侀敊璇紓甯哥被 - * - * @author ruoyi - */ -public class CaptchaException extends UserException -{ - private static final long serialVersionUID = 1L; - - public CaptchaException() - { - super("user.jcaptcha.error", null); - } -} +package com.ruoyi.common.exception.user; + +/** + * 楠岃瘉鐮侀敊璇紓甯哥被 + * + * @author ruoyi + */ +public class CaptchaException extends UserException { + private static final long serialVersionUID = 1L; + + public CaptchaException() { + super("user.jcaptcha.error"); + } +} -- Gitblit v1.9.3