Skip to content

Commit

Permalink
修复查询逻辑BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyPuppy514 committed May 22, 2023
1 parent dbde868 commit 21e7dfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/lckp/jproxy/filter/IndexerFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
while (index < size && indexerRequest.getLimit() - count > 0) {
// 更新参数
offset = offset + count;
if (StringUtils.isNotBlank(indexerRequest.getSeasonNumber()) && index == size - 1) {
if (offset < indexerRequest.getLimit()) {
if (index == size - 1) {
if (StringUtils.isNotBlank(indexerRequest.getSeasonNumber())
&& offsetList.get(index - 1) < indexerRequest.getLimit()) {
indexerRequest.setSeasonNumber(null);
indexerRequest.setEpisodeNumber(null);
} else {
Expand Down

0 comments on commit 21e7dfb

Please sign in to comment.