Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

感觉有个用户体验不好的地方 #2

Closed
saucer-man opened this issue Mar 10, 2021 · 1 comment
Closed

感觉有个用户体验不好的地方 #2

saucer-man opened this issue Mar 10, 2021 · 1 comment

Comments

@saucer-man
Copy link

当maxPage>5时,比如为10,则采用并发模式。

此时只要其中一页请求有问题,比如搜索结果只有7页,则访问第8页的时候出错,很可能就会没结果。(因为这时候往往第8页返回的最快)

我觉得程序的逻辑是不是可以更好:先访问第一页,看下结果有多少数量和用户有多少额度,然后根据这两个变量来调整maxPage,再进行余下的并发逻辑。

@gyyyy gyyyy closed this as completed in e35840b Mar 11, 2021
@gyyyy
Copy link
Owner

gyyyy commented Mar 11, 2021

在MultiPageSearch处增加了对quota和total的判断,限制了maxPage的最大值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants