登陆日志及导出问题修改
This commit is contained in:
parent
9eca905f20
commit
23f3c3dfb0
|
|
@ -83,7 +83,7 @@ public class SysRecordLogService
|
||||||
sysLogsVo.setResult("失败");
|
sysLogsVo.setResult("失败");
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotEmpty(userId)){
|
if (StringUtils.isNotEmpty(userId)){
|
||||||
sysLogsVo.setUserId(result);
|
sysLogsVo.setUserId(userId);
|
||||||
}
|
}
|
||||||
sysLogsVo.setFailureReason(message);
|
sysLogsVo.setFailureReason(message);
|
||||||
sysLogsVo.setTitle("系统登陆");
|
sysLogsVo.setTitle("系统登陆");
|
||||||
|
|
@ -112,7 +112,7 @@ public class SysRecordLogService
|
||||||
sysLogsVo.setModel("退出登录");
|
sysLogsVo.setModel("退出登录");
|
||||||
sysLogsVo.setLogType(0);
|
sysLogsVo.setLogType(0);
|
||||||
if (StringUtils.isNotEmpty(userId)){
|
if (StringUtils.isNotEmpty(userId)){
|
||||||
sysLogsVo.setUserId(result);
|
sysLogsVo.setUserId(userId);
|
||||||
}
|
}
|
||||||
sysLogsVo.setOperaTime(DateUtils.getTime());
|
sysLogsVo.setOperaTime(DateUtils.getTime());
|
||||||
sysLogsVo.setMethodType(SystemGlobal.POST);
|
sysLogsVo.setMethodType(SystemGlobal.POST);
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ import com.bonus.common.security.interceptor.HeaderInterceptor;
|
||||||
*/
|
*/
|
||||||
public class WebMvcConfig implements WebMvcConfigurer
|
public class WebMvcConfig implements WebMvcConfigurer
|
||||||
{
|
{
|
||||||
/** 不需要拦截地址 */
|
/** 不需要拦截地址 "/logout",*/
|
||||||
public static final String[] excludeUrls = { "/login", "/logout", "/refresh" };
|
public static final String[] excludeUrls = { "/login", "/refresh" };
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInterceptors(InterceptorRegistry registry)
|
public void addInterceptors(InterceptorRegistry registry)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue