From e1efdb8602965973c8cb76fb1ca727d73761fd03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E5=89=91=E9=94=8B?= <1822213252@qq.com> Date: Mon, 19 Dec 2022 07:26:18 +0000 Subject: [PATCH] =?UTF-8?q?update=20=E6=9B=B4=E6=96=B0LogininforEvent?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E7=B1=BB=E5=90=8D=E7=A7=B0=E4=B8=BAlogininfo?= =?UTF-8?q?rEvent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁剑锋 <1822213252@qq.com> --- .../com/ruoyi/system/service/SysLoginService.java | 12 ++++++------ .../com/ruoyi/system/service/SysRegisterService.java | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/SysLoginService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/SysLoginService.java index 551ed7a1..31f8c471 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/SysLoginService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/SysLoginService.java @@ -141,12 +141,12 @@ public class SysLoginService { * @return */ private void recordLogininfor(String username, String status, String message) { - LogininforEvent logininforDTO = new LogininforEvent(); - logininforDTO.setUsername(username); - logininforDTO.setStatus(status); - logininforDTO.setMessage(message); - logininforDTO.setRequest(ServletUtils.getRequest()); - SpringUtils.context().publishEvent(logininforDTO); + LogininforEvent logininforEvent = new LogininforEvent(); + logininforEvent.setUsername(username); + logininforEvent.setStatus(status); + logininforEvent.setMessage(message); + logininforEvent.setRequest(ServletUtils.getRequest()); + SpringUtils.context().publishEvent(logininforEvent); } /** diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/SysRegisterService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/SysRegisterService.java index 62cf4006..bf9d00d4 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/SysRegisterService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/SysRegisterService.java @@ -95,12 +95,12 @@ public class SysRegisterService { * @return */ private void recordLogininfor(String username, String status, String message) { - LogininforEvent logininforDTO = new LogininforEvent(); - logininforDTO.setUsername(username); - logininforDTO.setStatus(status); - logininforDTO.setMessage(message); - logininforDTO.setRequest(ServletUtils.getRequest()); - SpringUtils.context().publishEvent(logininforDTO); + LogininforEvent logininforEvent = new LogininforEvent(); + logininforEvent.setUsername(username); + logininforEvent.setStatus(status); + logininforEvent.setMessage(message); + logininforEvent.setRequest(ServletUtils.getRequest()); + SpringUtils.context().publishEvent(logininforEvent); } }