Repository navigation
fix: 修复音频续传校验与 CDN 重试 - #276
Closed
Aschenbath wants to merge 1 commit into
Closed
Aschenbath wants to merge 1 commit into
Aschenbath wants to merge 1 commit into
Conversation
teikengstudio
added a commit
that referenced
this pull request
Nov 12, 2026
Owner
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.
恢复下载时,如果服务器保留相同弱 ETag,而音频仅在后续分块发生变化,原实现可能拼接新旧版本并报告下载完成。本次在缺少可靠续传校验标识时逐块核对已有缓存,检测到变化后清空旧块,重试可重新下载一致内容。
验证:14 个临时定向场景全部通过,覆盖上述错误、音频变化后的恢复、正常续传、连接重置、暂停冷却和 429 限流。同步到最新 main 后,dart analyze lib 无问题,git diff --check 通过。PR 仅修改 lib/services/audio_cache.dart。