Переглянути джерело

将验证码接口开关从数据库获取改为自定义

wyyay 2 роки тому
батько
коміт
258a24a0ed

+ 3 - 3
hazard-admin/src/main/java/com/ozs/web/controller/common/CaptchaController.java

@@ -46,10 +46,10 @@ public class CaptchaController
     public AjaxResult getCode(HttpServletResponse response) throws IOException
     {
         AjaxResult ajax = AjaxResult.success();
-        boolean captchaEnabled = configService.selectCaptchaEnabled();
+        //boolean captchaEnabled = configService.selectCaptchaEnabled();
+        boolean captchaEnabled = true;
         ajax.put("captchaEnabled", captchaEnabled);
-        if (!captchaEnabled)
-        {
+        if (!captchaEnabled) {
             return ajax;
         }