Commit bd7f9761d8fd987c8c543cf71e73fa1150e562d3
1 parent
dcf55c35
https://gitee.com/zhijiantianya/yudao-cloud/pulls/165/files
Showing
1 changed file
with
4 additions
and
2 deletions
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/apilog/core/filter/ApiAccessLogFilter.java
| @@ -146,9 +146,11 @@ public class ApiAccessLogFilter extends ApiRequestFilter { | @@ -146,9 +146,11 @@ public class ApiAccessLogFilter extends ApiRequestFilter { | ||
| 146 | if (handlerMethod != null) { | 146 | if (handlerMethod != null) { |
| 147 | Tag tagAnnotation = handlerMethod.getBeanType().getAnnotation(Tag.class); | 147 | Tag tagAnnotation = handlerMethod.getBeanType().getAnnotation(Tag.class); |
| 148 | Operation operationAnnotation = handlerMethod.getMethodAnnotation(Operation.class); | 148 | Operation operationAnnotation = handlerMethod.getMethodAnnotation(Operation.class); |
| 149 | - String operateModule = accessLogAnnotation != null ? accessLogAnnotation.operateModule() : | 149 | + String operateModule = accessLogAnnotation != null && StrUtil.isNotBlank(accessLogAnnotation.operateModule()) ? |
| 150 | + accessLogAnnotation.operateModule() : | ||
| 150 | tagAnnotation != null ? StrUtil.nullToDefault(tagAnnotation.name(), tagAnnotation.description()) : null; | 151 | tagAnnotation != null ? StrUtil.nullToDefault(tagAnnotation.name(), tagAnnotation.description()) : null; |
| 151 | - String operateName = accessLogAnnotation != null ? accessLogAnnotation.operateName() : | 152 | + String operateName = accessLogAnnotation != null && StrUtil.isNotBlank(accessLogAnnotation.operateName()) ? |
| 153 | + accessLogAnnotation.operateName() : | ||
| 152 | operationAnnotation != null ? operationAnnotation.summary() : null; | 154 | operationAnnotation != null ? operationAnnotation.summary() : null; |
| 153 | OperateTypeEnum operateType = accessLogAnnotation != null && accessLogAnnotation.operateType().length > 0 ? | 155 | OperateTypeEnum operateType = accessLogAnnotation != null && accessLogAnnotation.operateType().length > 0 ? |
| 154 | accessLogAnnotation.operateType()[0] : parseOperateLogType(request); | 156 | accessLogAnnotation.operateType()[0] : parseOperateLogType(request); |