From 83287432b0b4caa1168890b3d835ea9c8bef8878 Mon Sep 17 00:00:00 2001 From: yuan <3558860895@qq.com> Date: Tue, 5 Nov 2024 00:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E5=89=8D=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/system/SysLoginController.java | 2 + .../web/service/SysLoginService.java | 1 + vue2/vue/src/components/Login.vue | 51 ++++++++++++------- 3 files changed, 37 insertions(+), 17 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java index c0d4981..d0f4336 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java @@ -48,6 +48,8 @@ public class SysLoginController @PostMapping("/login") public AjaxResult login(@RequestBody LoginBody loginBody) { + System.out.println("==============="+loginBody.getUuid()); + AjaxResult ajax = AjaxResult.success(); // 生成令牌 String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java index fe16427..24d5a90 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java @@ -63,6 +63,7 @@ public class SysLoginService */ public String login(String username, String password, String code, String uuid) { + System.out.println("======"+uuid); // 验证码校验 validateCaptcha(username, code, uuid); // 登录前置校验 diff --git a/vue2/vue/src/components/Login.vue b/vue2/vue/src/components/Login.vue index d547dc8..68e9eb9 100644 --- a/vue2/vue/src/components/Login.vue +++ b/vue2/vue/src/components/Login.vue @@ -13,7 +13,7 @@