From db2080d98831beb26dd85a4395985764eb74b567 Mon Sep 17 00:00:00 2001 From: hequan_waynaqua <1669738430@qq.com> Date: Sat, 17 Oct 2020 17:07:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=89=8B=E6=9C=BA=E7=AB=AF):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=B3=A8=E5=86=8C=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/wayn/admin/api/controller/system/LoginController.java | 3 +-- .../java/com/wayn/mobile/api/controller/LoginController.java | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) 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();