Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

fix(playlist_track_all): fix inconsistent meaning of offset/limit between code and document #1524

Merged
merged 1 commit into from
May 6, 2022

Conversation

NobeKanai
Copy link

文档里的关于这个接口的描述和代码行为并不一致,(属实搞不懂代码里是怎么理解offset/limit的), 这个提交修复了这一问题并保留 当前文档 里的行为:

注:关于offset,你可以这样理解,假设你当前的歌单有100首歌

你传入limit=10&offset=0等价于limit=10,你会得到第1-10首歌曲

你传入limit=10&offset=1,你会得到第2-11首歌曲

如果你设置limit=10&offset=2,你就会得到第3-12首歌曲

@vercel
Copy link

vercel bot commented May 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
netease-cloud-music-api ✅ Ready (Inspect) Visit Preview May 6, 2022 at 11:01AM (UTC)
netease-cloud-music-api-binaryify ✅ Ready (Inspect) Visit Preview May 6, 2022 at 11:01AM (UTC)

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

Successfully merging this pull request may close these issues.

2 participants