♻️ Refactoring code. close #I5ZZCF 日志模块除了登录请求其余任何请求mybatis自动填充的username都为anonymousUser

This commit is contained in:
lbw 2022-11-08 18:05:28 +08:00
parent 6d9713ec0e
commit 60ead7edca

View File

@ -54,6 +54,8 @@ public class SysLogUtils {
sysLog.setMethod(request.getMethod());
sysLog.setUserAgent(request.getHeader(HttpHeaders.USER_AGENT));
sysLog.setParams(HttpUtil.toParams(request.getParameterMap()));
sysLog.setCreateBy(getUsername());
sysLog.setUpdateBy(getUsername());
return sysLog;
}