We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当maxPage>5时,比如为10,则采用并发模式。
此时只要其中一页请求有问题,比如搜索结果只有7页,则访问第8页的时候出错,很可能就会没结果。(因为这时候往往第8页返回的最快)
我觉得程序的逻辑是不是可以更好:先访问第一页,看下结果有多少数量和用户有多少额度,然后根据这两个变量来调整maxPage,再进行余下的并发逻辑。
The text was updated successfully, but these errors were encountered:
e35840b
在MultiPageSearch处增加了对quota和total的判断,限制了maxPage的最大值。
Sorry, something went wrong.
No branches or pull requests
当maxPage>5时,比如为10,则采用并发模式。
此时只要其中一页请求有问题,比如搜索结果只有7页,则访问第8页的时候出错,很可能就会没结果。(因为这时候往往第8页返回的最快)
我觉得程序的逻辑是不是可以更好:先访问第一页,看下结果有多少数量和用户有多少额度,然后根据这两个变量来调整maxPage,再进行余下的并发逻辑。
The text was updated successfully, but these errors were encountered: