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); } }