Skip to content

fix(autostockpile): 优化商品展示与数量识别#1859

Merged
single-ptilopsis merged 6 commits intov2from
fix/auto-stockpile
Apr 2, 2026
Merged

fix(autostockpile): 优化商品展示与数量识别#1859
single-ptilopsis merged 6 commits intov2from
fix/auto-stockpile

Conversation

@single-ptilopsis
Copy link
Copy Markdown
Contributor

@single-ptilopsis single-ptilopsis commented Apr 2, 2026

summary:

  • 调整自动囤货入口流程,改为识别并点击侧边栏以展示可购物品,替代原先的滑动到底部方案,提高流程稳定性。
  • 优化自动囤货购买阶段的数量识别,更新加减按钮模板,启用 GreenMask,并收紧数量 OCR 区域以提升识别稳定性。

close #1846
close #1739 (推测为滑动失败导致)

Summary by Sourcery

优化自动仓储流程和数量识别,以实现更稳定的自动化采购。

New Features:

  • 支持通过检测并点击侧边栏以展开可购买物品来进入自动仓储流程,而不再依赖滚动到底部。

Bug Fixes:

  • 提高自动仓储流程的健壮性,避免因不可靠的“滚动到底部”行为导致流程失败。
  • 增强在自动仓储购买阶段的数量识别能力,减少在调整物品数量时的识别错误和误点击。

Enhancements:

  • 更新按钮模板并收紧数量检测的 OCR 区域,包括启用 GreenMask,从而使自动化采购更稳定。
  • 调整相关配送和协议空间的流水线,以匹配更新后的仓储进入和采购行为。
Original summary in English

Summary by Sourcery

Optimize the auto stockpile flow and quantity recognition for more stable automated purchasing.

New Features:

  • Support entering the auto stockpile flow by detecting and clicking the sidebar to reveal purchasable items instead of relying on scrolling to the bottom.

Bug Fixes:

  • Improve robustness of the auto stockpile process to avoid failures caused by unreliable scroll-to-bottom behavior.
  • Enhance quantity recognition during the auto stockpile purchase phase to reduce misreads and mis-clicks when adjusting item counts.

Enhancements:

  • Update button templates and tighten the OCR area for quantity detection, including enabling GreenMask, to make automated purchases more stable.
  • Adjust related delivery and protocol space pipelines to align with the updated stockpile entry and purchase behaviors.

Copilot AI review requested due to automatic review settings April 2, 2026 09:07
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - 我已经审查了你的更改,看起来非常棒!


Sourcery 对开源项目是免费的——如果你觉得我们的评审有帮助,欢迎分享 ✨
帮我变得更有用吧!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续评审。
Original comment in English

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


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

该 PR 针对自动囤货(AutoStockpile)流程做稳定性优化:入口阶段改为识别并点击侧边栏以展开可购买物品列表,替代原先滑动到底部的方式;购买阶段则通过更新加减按钮模板、启用 GreenMask 并收紧数量 OCR 区域来提升数量识别稳定性,从而缓解因滑动/识别不稳定导致的任务失败(关联 #1846#1739)。

Changes:

  • 自动囤货入口:新增“识别侧边栏 + 点击展开”的节点链路,移除原“滑动到底部”方案。
  • 自动囤货购买:QuantizedSliding 参数调整(启用 GreenMask、收紧数量 OCR ROI),并更新加减按钮模板图片。
  • 其他 pipeline:将个别节点字段对齐为 desc,并做少量字段顺序整理。

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
assets/resource/pipeline/ProtocolSpace/InSpace.json 调整节点中 post_delay / rate_limit 字段位置(不改变语义)。
assets/resource/pipeline/DeliveryJobs/PackCargo.json doc 更正为 desc,并调整 order_by 字段位置以符合常见写法。
assets/resource/pipeline/AutoStockpile/Purchase.json QuantizedSliding:启用 GreenMask、收紧数量 OCR Box,并使用更新后的加减按钮模板。
assets/resource/pipeline/AutoStockpile/Entry.json 新增“侧边栏展开”节点 AutoStockpileSelectMarket;移除“滑动到底部/跳到底部”相关节点与链路。
assets/resource/image/AutoStockpile/IncreaseButton.png 更新“增加数量”按钮模板图。
assets/resource/image/AutoStockpile/DecreaseButton.png 更新“减少数量”按钮模板图。

@single-ptilopsis single-ptilopsis merged commit 8322202 into v2 Apr 2, 2026
18 checks passed
@single-ptilopsis single-ptilopsis deleted the fix/auto-stockpile branch April 2, 2026 09:33
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.

自动囤货失败 基建任务-再次种植/自动囤货-未执行

2 participants