!320 【轻量级 PR】优化无用代码
Merge pull request !320 from MichelleChung/5.X
| | |
| | | boolean selectRegisterEnabled(String tenantId); |
| | | |
| | | /** |
| | | * 获取验证码开关 |
| | | * |
| | | * @return true开启,false关闭 |
| | | */ |
| | | boolean selectCaptchaEnabled(); |
| | | |
| | | /** |
| | | * 查询参数配置列表 |
| | | * |
| | | * @param config 参数配置信息 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取验证码开关 |
| | | * |
| | | * @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); |
| | | } |
| | | |
| | | /** |
| | | * 查询参数配置列表 |
| | | * |
| | | * @param config 参数配置信息 |