mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 20:57:21 +08:00
fix: 修复账号登录不记录登录人的问题
This commit is contained in:
@@ -221,7 +221,7 @@ public class LogInterceptor implements HandlerInterceptor {
|
||||
String requestBody = this.getRequestBody(request);
|
||||
logDO.setCreateUser(ObjectUtil.defaultIfNull(logDO.getCreateUser(), LoginHelper.getUserId()));
|
||||
String requestURI = request.getRequestURI();
|
||||
if (requestURI.startsWith("/auth") && !SysConsts.LOGOUT_URI.equals(requestURI)) {
|
||||
if (requestURI.startsWith("/oauth")) {
|
||||
logDO.setCreateUser(null);
|
||||
}
|
||||
if (null == logDO.getCreateUser() && SysConsts.LOGIN_URI.equals(requestURI)) {
|
||||
|
Reference in New Issue
Block a user