|
@@ -4,6 +4,7 @@ import cn.hutool.core.exceptions.ExceptionUtil;
|
|
|
import cn.hutool.core.util.ArrayUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.extra.servlet.ServletUtil;
|
|
|
+import cn.iocoder.yudao.framework.common.enums.UserTypeEnum;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
|
import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
|
|
|
import cn.iocoder.yudao.framework.operatelog.core.dto.OperateLogCreateReqDTO;
|
|
@@ -81,6 +82,12 @@ public class OperateLogAspect {
|
|
|
}
|
|
|
|
|
|
private Object around0(ProceedingJoinPoint joinPoint, OperateLog operateLog, ApiOperation apiOperation) throws Throwable {
|
|
|
+ // 目前,只有管理员,才记录操作日志!所以非管理员,直接调用,不进行记录
|
|
|
+ Integer userType = WebFrameworkUtils.getLoginUserType();
|
|
|
+ if (!Objects.equals(userType, UserTypeEnum.ADMIN.getValue())) {
|
|
|
+ return joinPoint.proceed();
|
|
|
+ }
|
|
|
+
|
|
|
// 记录开始时间
|
|
|
Date startTime = new Date();
|
|
|
try {
|