|
@@ -39,12 +39,12 @@ public class CaptchaController
|
|
|
|
|
|
@Autowired
|
|
|
private ISysConfigService configService;
|
|
|
+
|
|
|
/**
|
|
|
* 生成验证码
|
|
|
*/
|
|
|
@GetMapping("/captchaImage")
|
|
|
- public AjaxResult getCode(HttpServletResponse response) throws IOException
|
|
|
- {
|
|
|
+ public AjaxResult getCode() {
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
|
boolean captchaEnabled = configService.selectCaptchaEnabled();
|
|
|
ajax.put("captchaEnabled", captchaEnabled);
|
|
@@ -91,4 +91,5 @@ public class CaptchaController
|
|
|
ajax.put("img", Base64.encode(os.toByteArray()));
|
|
|
return ajax;
|
|
|
}
|
|
|
+
|
|
|
}
|