Repository navigation
fix(ucampus): restore progress checks after Windows clock rollback - #237
Merged
Merged
Conversation
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.
问题
U校园只读进度监控在重启之间保存
last_attempt墙钟时间。若 Windows 自动校时或用户调整时钟导致当前时间早于上次检查,now - previous_attempt < 60恒成立,可能持续跳过服务器进度核验。修复
仅当上次检查确实发生在当前时间之前、且相隔不足 60 秒时,才跳过新 GET;时钟回拨后可执行新一次只读检查并记录新的时间锚点。新增测试覆盖回拨恢复以及之后的正常 60 秒限流。
影响
不改变正常的查询间隔、账户绑定和任务协议,也不触发任何学习/完成上报。待 CI 和 Windows 环境验证。