diff --git a/waynboot-admin-api/src/main/java/com/wayn/admin/api/controller/system/LoginController.java b/waynboot-admin-api/src/main/java/com/wayn/admin/api/controller/system/LoginController.java index 3d2e305..b517b60 100644 --- a/waynboot-admin-api/src/main/java/com/wayn/admin/api/controller/system/LoginController.java +++ b/waynboot-admin-api/src/main/java/com/wayn/admin/api/controller/system/LoginController.java @@ -17,7 +17,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; import java.util.List; import java.util.Set; import java.util.concurrent.TimeUnit; @@ -81,7 +80,7 @@ public class LoginController { @ResponseBody @RequestMapping("/captcha") - public R captcha(HttpServletRequest request, HttpServletResponse response) throws Exception { + public R captcha() { SpecCaptcha specCaptcha = new SpecCaptcha(100, 43, 4); String verCode = specCaptcha.text().toLowerCase(); String key = IdUtil.getUid(); diff --git a/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/LoginController.java b/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/LoginController.java index 4c9e7a4..1c21da6 100644 --- a/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/LoginController.java +++ b/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/LoginController.java @@ -15,8 +15,6 @@ import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; import java.util.Date; import java.util.concurrent.TimeUnit; @@ -70,7 +68,7 @@ public class LoginController { @ResponseBody @RequestMapping("/captcha") - public R captcha(HttpServletRequest request, HttpServletResponse response) throws Exception { + public R captcha() { SpecCaptcha specCaptcha = new SpecCaptcha(80, 32, 4); String verCode = specCaptcha.text().toLowerCase(); String key = IdUtil.getUid();