Repository navigation
fix(学习通): 复用参考 App 的课程入口页作业发现,不强制依赖 workEnc - #422
Merged
Merged
Conversation
3 of 5 tasks
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.
问题定位(参考 APK 方法体)
用户提供的
丛雨幼刀学习通_2.1.14.apk中,MobileEngine.scan()先读取本人通知、展开学习任务,后执行scanCourses()。scanCourses()进入课程实际入口页面并通过 Jsoup 选择器.bottomList li[data]、p.overHidden2、p.status读取已提交/待批阅/已完成记录。此前校序一直要求课程入口含workEnc才能继续生成 GET 列表请求;同一账号的某门课程如使用嵌入式作业列表模板就被错误拒绝。此前两轮 URL 修改没有解决真实账号 Python 程序设计的失败。本次修复(纯服务端、无新增登录或 UI)
courseId/classId/cpi及官方课程入口后,额外识别该课程真实页面.bottomList li[data]的可信作业行。仍复用parseChaoxingWorkList/safeChaoxingWorkUrl的 HTTPS 官方域名、作业 ID 与课程班级强校验。workEnc时作为可信单条状态证据,但没有官方总数时只能归为LIST_ONLY;有分页或总数矛盾不得冒充 100% 覆盖。workEnc、正常列表优先、无任务/空壳不认定成功、非本课程条目拒绝。门禁与诚实状态
CI 通过后才合并,Cloudflare SHA 通过后才宣称上线;真实 Python 六条作业尚须本人手机复测。本 PR 不使用任何机密登录数据或反编译源码直接复制,借鉴的是已核实的只读选择器和数据流。