Skip to content

Conversation

@T0W3R-Su
Copy link
Contributor

  • 通过 offset 参数循环请求、分页获取歌单歌曲,解决超过 1000 首无法完整获取的问题
  • 在歌单标题后显示歌曲总数,便于用户核对数量
  • 本地开发环境 API 部署地址切换至 localhost:3000

解决 #1 问题

- 通过 offset 参数循环请求、分页获取歌单歌曲,解决超过 1000 首无法完整获取的问题
- 在歌单标题后显示歌曲总数,便于用户核对数量
- 本地开发环境 API 地址切换至localhost:3000
@vercel
Copy link

vercel bot commented Jan 18, 2026

@T0W3R-Su is attempting to deploy a commit to the Gatt Team on Vercel.

A member of the Team first needs to authorize it.

@T0W3R-Su
Copy link
Contributor Author

附上本地部署并成功运行截图供佐证
image

- 确保歌曲筛选完整性,避免丢失部分歌曲
- 将串行请求改为并发控制的并行请求,提升数据获取效率
- 将歌曲分析逻辑封装为 analyzeSong 异步函数
- 使用 Promise.all 分批处理,最大并发数限制为10,避免请求过多导致阻塞
@T0W3R-Su
Copy link
Contributor Author

  • 增加无相关字段时的默认标签“其他”,避免歌曲丢失
  • 修改歌曲信息获取逻辑为并行,提高效率

@T0W3R-Su T0W3R-Su changed the title ✨ feat(homeview): 增加歌单分页获取逻辑及歌曲数量显示 ✨ feat(homeview): 增加歌单分页获取逻辑、歌曲数量显示、默认标签和并行化获取 Jan 18, 2026
@jrenc2002 jrenc2002 merged commit 3dc7a98 into jrenc2002:main Jan 24, 2026
0 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants