Repository navigation
Conversation
Contributor
Findings
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "ab.chatgpt.com"See Network Configuration for more information.
|
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.
问题
探索「选关」阶段要滑动右侧章节列表找到配置的第二十八章,但
S_SWIPE_LEVEL_UP的滑动方向反了、步长也偏小,15 次滑动后仍然找不到,报:(参考用户侧日志
log/error/1791614154415、1791609172251、1791617732371、1791645503807;每次日志里 15 次滑动的 OCR 结果都是['第一章', '第二章', '第三章'],即列表完全没动。)1)方向反了
规则描述写的是"向上滑动章节",但坐标
(1142,328) → (1143,444)实为手指向下拖。在 1280×720 实机上用 adb 验证(章节列表停在第一~四章):2)步长偏小
116px 一次约翻 1.3 章,而第一章到第二十八章需要约 20 次,超过
swipeCount >= 15的上限。修改
tasks/Exploration/assets.py+tasks/Exploration/res/swipe.json:S_SWIPE_LEVEL_UP改为(1152,430) → (1152,280),即手指向上 150px;配对的
S_SWIPE_LEVEL_DOWN同步镜像为(1152,280) → (1152,430),保持上下成对;tasks/Exploration/base.py:滑动次数上限15 → 30(给标定误差留余量)。验证
同一台模拟器上 adb 实测标定:
为什么选 2 章/次而不是更快:章节名 OCR 窗口一次显示 3 章,步长 2 章时相邻两次截图有 1 章重叠,目标章节不会落在两次截图之间的空档里;若一次 3.5 章则会出现 0.5 章空档,可能直接跳过第二十八章。
按 2 章/次计算:27 章 ÷ 2 ≈ 14 次 < 上限 30 ✓。
tasks/Exploration/assets.py、tasks/Exploration/base.py均py_compile OK;I_CHECK_EXPLORATION在该画面上 0.968、章节名 OCR 正常)。备注
只修正选关滑动的方向、步长与次数上限,不改判定逻辑。
Sourcery 总结
通过校准滑动操作并允许更多次尝试以达到配置的章节级别,修复探索章节导航问题。
错误修复:
功能增强:
Original summary in English
Summary by Sourcery
Fix exploration chapter navigation by calibrating swipe movement and allowing additional attempts to reach the configured level.
Bug Fixes:
Enhancements: