diff --git a/src/main/java/io/github/xxyopen/novel/core/interceptor/AuthInterceptor.java b/src/main/java/io/github/xxyopen/novel/core/interceptor/AuthInterceptor.java index 44fbca4..1718144 100644 --- a/src/main/java/io/github/xxyopen/novel/core/interceptor/AuthInterceptor.java +++ b/src/main/java/io/github/xxyopen/novel/core/interceptor/AuthInterceptor.java @@ -43,9 +43,9 @@ public class AuthInterceptor implements HandlerInterceptor { String requestUri = request.getRequestURI(); // 根据请求的 URI 得到认证策略 - String authStrategyName = requestUri.substring(ApiRouterConsts.API_URL_PREFIX.length() + 1); - authStrategyName = authStrategyName.substring(0,authStrategyName.indexOf("/")); - authStrategyName = String.format("%sAuthStrategy",authStrategyName); + String subUri = requestUri.substring(ApiRouterConsts.API_URL_PREFIX.length() + 1); + String systemName = subUri.substring(0,subUri.indexOf("/")); + String authStrategyName = String.format("%sAuthStrategy",systemName); // 开始认证 try { diff --git a/src/main/java/io/github/xxyopen/novel/dto/resp/BookCommentRespDto.java b/src/main/java/io/github/xxyopen/novel/dto/resp/BookCommentRespDto.java index 37bf7b7..a101936 100644 --- a/src/main/java/io/github/xxyopen/novel/dto/resp/BookCommentRespDto.java +++ b/src/main/java/io/github/xxyopen/novel/dto/resp/BookCommentRespDto.java @@ -18,7 +18,6 @@ import java.util.List; @Builder public class BookCommentRespDto { - private Long commentTotal; private List comments; @@ -41,6 +40,4 @@ public class BookCommentRespDto { } - - }