修复追番页获取不全的问题#1396
Open
citrusreticulata wants to merge 2 commits into
Open
Conversation
修复追番页获取不全的问题 mirai-mamori#1386
增加安全锁,放置调用次数过多;修正注释错误
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复追番页获取不全的问题 #1386
该php脚本会从
https://api.bgm.tv/拉取用户的追番列表,以json返回,存储在$collData中。然而,当用户追番数量较多时,这段程序没有正确处理分页参数,导致只能获取第一页的数据。现在,执行1次API调用后,会拿取第一页数据,并且根据返回的total参数判断是否有其他页的数据需要获取。如果有其他页,则调用若干次API获取全部番剧列表。