mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
♻️ Refactoring code. close #I5ZZCF 日志模块除了登录请求其余任何请求mybatis自动填充的username都为anonymousUser
This commit is contained in:
parent
6d9713ec0e
commit
60ead7edca
@ -54,6 +54,8 @@ public class SysLogUtils {
|
|||||||
sysLog.setMethod(request.getMethod());
|
sysLog.setMethod(request.getMethod());
|
||||||
sysLog.setUserAgent(request.getHeader(HttpHeaders.USER_AGENT));
|
sysLog.setUserAgent(request.getHeader(HttpHeaders.USER_AGENT));
|
||||||
sysLog.setParams(HttpUtil.toParams(request.getParameterMap()));
|
sysLog.setParams(HttpUtil.toParams(request.getParameterMap()));
|
||||||
|
sysLog.setCreateBy(getUsername());
|
||||||
|
sysLog.setUpdateBy(getUsername());
|
||||||
return sysLog;
|
return sysLog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user