This commit is contained in:
77
2024-04-10 00:01:15 +08:00
parent fd62adf71e
commit 2f3f1ca46b
2 changed files with 7 additions and 0 deletions

View File

@@ -90,10 +90,12 @@ public class LogAspect {
operLog.setOperName(loginUser.getUsername());
operLog.setUserType(loginUser.getUserType());
operLog.setDeptName(loginUser.getDeptName());
logString.append(String.format("currentUserId=%s;", loginUser.getUserId()));
}
}catch (Exception ex){
// not do
}
logString.append(String.format("user-agent=%s;", ServletUtils.getUserAgent()));
// 处理设置注解上的参数
getControllerMethodDescription(joinPoint, controllerLog, operLog, jsonResult,logString);
if (e != null) {