日志备份功能

This commit is contained in:
lizhenhua 2024-07-28 13:52:42 +08:00
parent 0b379e05b1
commit 1b39827a2b
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ public class SysLoginService {
*/ */
public void logout(String loginName, String userId) { public void logout(String loginName, String userId) {
try { try {
recordLogService.saveLogout(loginName, "退出成功", "退出成功", userId, "退出成功"); recordLogService.saveLogout(loginName, "成功", "成功", userId, "成功");
} catch (Exception e) { } catch (Exception e) {
recordLogService.saveLogs(loginName, System.currentTimeMillis(), "登出异常", e.getMessage(), null, "失败"); recordLogService.saveLogs(loginName, System.currentTimeMillis(), "登出异常", e.getMessage(), null, "失败");
throw new ServiceException("退出失败,请稍后重试"); throw new ServiceException("退出失败,请稍后重试");