From a29550445d16780d2a66db0cb858ba5c4c9254c8 Mon Sep 17 00:00:00 2001 From: zlyx <1242874891@qq.com> Date: Thu, 30 Mar 2023 11:42:07 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=20;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/system/service/ISysConfigService.java | 7 ------- .../system/service/impl/SysConfigServiceImpl.java | 14 -------------- 2 files changed, 21 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java index 5e89d157..4fa1bf3c 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java @@ -40,13 +40,6 @@ public interface ISysConfigService { */ boolean selectRegisterEnabled(String tenantId); - /** - * 获取验证码开关 - * - * @return true开启,false关闭 - */ - boolean selectCaptchaEnabled(); - /** * 查询参数配置列表 * diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java index 80a68a2f..b64d85d6 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java @@ -94,20 +94,6 @@ public class SysConfigServiceImpl implements ISysConfigService, ConfigService { return Convert.toBool(retConfig.getConfigValue()); } - /** - * 获取验证码开关 - * - * @return true开启,false关闭 - */ - @Override - public boolean selectCaptchaEnabled() { - String captchaEnabled = SpringUtils.getAopProxy(this).selectConfigByKey("sys.account.captchaEnabled"); - if (StringUtils.isEmpty(captchaEnabled)) { - return true; - } - return Convert.toBool(captchaEnabled); - } - /** * 查询参数配置列表 *