Repository navigation
fix: 对齐网易云心动模式整轮续推、种子与退出恢复 - #405
Open
HSJ-BanFan wants to merge 7 commits into
Open
HSJ-BanFan wants to merge 7 commits into
HSJ-BanFan wants to merge 7 commits into
Conversation
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Author
|
已合并最新 dev(1.2.1 / Electron 44.9)并重新构建验证。pnpm typecheck、lint(0 错误 0 警告)、50 个 node 用例、515 个 web 用例全部通过。1.2.1 实机:心动队列 440 首、种子「慢歌一」置顶、161 首 AI 推荐;缩短队列触发整轮续推 3 -> 6,新增 3 首 moreRcmd 并显示「更多推荐」分隔行;退出后恢复进入前的 30 首队列和列表循环。 |
This branch has not been deployed
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.
改动类型
是否包含破坏性变更
改动说明
修复心动模式播放完一轮后仍循环原列表的问题,并按网易云 PC 客户端的行为补齐以下逻辑:
type=fromPlayAll、count=歌单长度、startMusicId=第一首可播放曲目、starPlaylist和uid;starPlaylist使用原始 NCM song 结构。playedOnce,整轮每首至少播放一次后调用/api/homepage/more/rcmd/song,每次追加 3 首「更多推荐」。无版权曲目不做主动过滤,保留聚合播放器通过插件或其他音源兜底的机会。
关联 Issue
Closes #404
测试情况
本地环境:Windows 11 10.0.26200,已合并最新
dev(1.2.1 / Electron 44.9)后重新构建验证。pnpm format:通过,无改动。pnpm typecheck:node + web 通过。pnpm lint:0 个错误、0 个警告。pnpm test:50 个 node 用例、515 个 web 用例(66 个测试文件)全部通过。moreRcmd,分隔行正常;退出心动恢复进入前的 30 首队列和列表循环。截图 / 录屏
截图中的账号信息已打码。
完整心动队列
进入心动模式后的完整队列:共 440 首,种子「慢歌一」置顶,161 首 AI 推荐,「自动推荐更多」开启。
一轮更多推荐
为了在测试中快速触发同一套整轮续推逻辑,将队列缩短为 3 首初始曲。播放完这 3 首后追加 3 首
moreRcmd,队列从 3 首变为 6 首,并出现「更多推荐」分隔行;新增曲目不显示「AI 推荐」标记,初始 AI 推荐仍保留标记。自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.ts(本 PR 未改动原生模块)dev分支提交