mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 20:54:25 +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.setUserAgent(request.getHeader(HttpHeaders.USER_AGENT));
|
||||
sysLog.setParams(HttpUtil.toParams(request.getParameterMap()));
|
||||
sysLog.setCreateBy(getUsername());
|
||||
sysLog.setUpdateBy(getUsername());
|
||||
return sysLog;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user