From 1c57d3b4fb391ec32ff07b3fb53296ace41d059a Mon Sep 17 00:00:00 2001 From: gongzhenkun <1658878546@qq.com> Date: Fri, 28 Oct 2022 11:45:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0APP=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/framework/web/service/SysLoginService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 5866da0..85ea6fd 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 @@ -121,13 +121,15 @@ public class SysLoginService TDoctor tDoctor = tDoctorMapper.selectTDoctorByPhone(username); if (Objects.isNull(tDoctor) || "2".equals(tDoctor.getDelFlag())) { // 未注册或已删除 返回flag app跳完善信息页面 - log.info("user no register."); + log.info("user {} no register.", username); + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.not.exists"))); ajax.put("flag", false); } else { SysUser sysUser = userService.selectUserByUserName(username); // 验证密码 if (!SecurityUtils.matchesPassword(password, sysUser.getPassword())) { log.info("登录用户:{} 密码不正确.", username); + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match"))); throw new ServiceException("登录失败!"); } LoginUser loginUser = new LoginUser(); @@ -143,7 +145,7 @@ public class SysLoginService ajax.put("flag", true); } ajax.put(Constants.REQUEST_FROM, "app"); - log.info("login result is {}", ajax); + log.info("login user is '{}' result is '{}'",username, ajax); return ajax; }