Skip to content

feat(TouchFish):修复摸鱼行动逻辑问题 - #1837

Open
Hurry2 wants to merge 1 commit into
runhey:devfrom
Hurry2:dev-pr
Open

Hurry2 wants to merge 1 commit into
runhey:devfrom
Hurry2:dev-pr

Conversation

@Hurry2

@Hurry2 Hurry2 commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

优化了一下,之前取值取错了

Summary by Sourcery

修正摸鱼行动的御守存储逻辑,确保根据正确的数量判断是否执行全部存储。

Bug Fixes:

  • 修复摸鱼行动中福运御守数量取值错误导致的存储判断问题。

Enhancements:

  • 增加当前御守数量和批量存储消耗数量的运行日志,并避免重复执行全部存储操作。
Original summary in English

Summary by Sourcery

修正摸鱼行动的御守存储逻辑,确保根据正确的数量判断是否执行全部存储。

Bug Fixes:

  • 修复摸鱼行动中福运御守数量取值错误导致的存储判断问题。

Enhancements:

  • 增加当前御守数量和批量存储消耗数量的运行日志,并避免重复执行全部存储操作。

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嘿——我已经审阅了你的更改,看起来很棒!

Sourcery 评估

需要人工审阅。 此更改根据通过 OCR 识别的票券数量,改变了自动化程序点击“全部保存”操作的时机,并防止重复尝试。如果逻辑有误,程序可能会消耗数量受限的游戏内货币,或导致保存操作未完成;回滚可以阻止今后发生错误操作,但无法撤销已经消耗的票券。


Sourcery 对开源项目免费——如果您喜欢我们的评审,请考虑分享一下 ✨
Original comment in English

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Needs a human reviewer. The change alters when the automation clicks the “save all” action based on OCR’d ticket counts and prevents repeated attempts. If the logic is wrong, it could spend a bounded amount of in-game currency or leave the save operation incomplete; reverting stops future incorrect actions but does not undo any tickets already spent.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@github-actions

Copy link
Copy Markdown
Contributor

Change Summary

  • 修正 O_WT_LUCKY_TICKETS.ocr() 的取值位置:由第二个返回值改为第一个返回值。
  • 增加当前福运御守数量与“全部存储”消耗数量的日志。
  • 增加 not_save_flag,使“全部存储”在本次流程中最多触发一次。

Reconstructed Intent

点击此处展开 - 这次改动最可能是为了修复因 OCR 返回值取错,导致余额判断错误、无法执行或错误执行“全部存储”的问题。 - 同时希望在一次进入摸鱼存储页面的流程中避免重复点击“全部存储”。

Observed Constraints

点击此处展开 - `O_WT_LUCKY_TICKETS` 定义为 `DigitCounter` OCR;结合同类 OCR 调用,首个返回值应是数量,余额判断依赖该约定。 - 当前数量与存储消耗是在进入页面时各 OCR 一次,后续循环使用静态值;流程依赖于“全部存储”只需执行一次,且成功后会出现确认/成功状态。 - `not_save_flag` 在调用 `appear_then_click(I_WT_SAVE_ALL)` 后立即置为 false,没有根据点击返回值或后续确认界面确认点击确实发生。

Intent Alignment

  • 基本一致,但实现只部分覆盖了“可靠完成一次全部存储”的 intent:OCR 取值修复和防重复点击与意图吻合;点击失败时的恢复路径仍不完整。

Release Risk

  • 风险等级:中
  • 若“全部存储”按钮在某一帧未成功点击,标记仍会阻止后续重试,随后可能直接超时退出,造成本次存储未完成。
  • 余额与消耗值只读取一次,依赖页面初始 OCR 正确;OCR 异常值缺少显式校验,而该操作涉及有限的游戏内御守消耗。

Validation Gaps

点击此处展开 - 未看到针对 OCR 返回值顺序的测试或真实截图回放验证。 - 未看到覆盖“余额足够且首次点击失败”“点击后确认弹窗出现”“余额不足”“余额恰好等于消耗”的流程验证。 - 发布前应至少确认点击成功后才锁定一次性标记,并验证成功提示/按钮消失与超时分支不会误报完成。

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • ab.chatgpt.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "ab.chatgpt.com"

See Network Configuration for more information.

Generated by PR Review Intent for #1837 · codex · gpt56 · 7.96 AIC · ⌖ 2.89 AIC · ⊞ 12.1K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

Findings

  • C2 [风险]
    位置:tasks/WeeklyTrifles/script_task.py:_save_touch_fish 中 not_save_flag 的设置与 I_WT_SAVE_ALL 点击分支
    原因:进入保存分支后立即将 not_save_flag 设为 False;如果点击未触发后续确认或保存流程异常,循环不会再次尝试“全部存储”,可能在计时结束时静默退出。
    修改:仅在确认保存成功后锁定状态;对点击后未出现确认/成功状态的情况保留有限次数重试,并记录失败原因。
  • C5 [不确定]
    位置:tasks/WeeklyTrifles/script_task.py:_save_touch_fish 中 O_WT_LUCKY_TICKETS.ocr 与 O_WT_SAVE_COST.ocr 的取值及比较
    原因:本次修复改变了 OCR 返回值的字段位置,但未见针对“当前数量、消耗数量、数量不足、保存成功”的回归测试或样例验证,无法确认不同 OCR 结果下比较始终正确。
    修改:补充覆盖上述场景的测试或可复现验证,并在比较前显式校验 OCR 结果为有效数值。

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • ab.chatgpt.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "ab.chatgpt.com"

See Network Configuration for more information.

Generated by PR Review Checklist for #1837 · codex · gpt56 · 9.09 AIC · ⌖ 2.55 AIC · ⊞ 12.9K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant