Skip to content

fix(SellProduct): 修复单击位置错误导致只能进行单次交易的问题#1765

Merged
MistEO merged 3 commits intov2from
fix/sell-product-bar-right
Mar 31, 2026
Merged

fix(SellProduct): 修复单击位置错误导致只能进行单次交易的问题#1765
MistEO merged 3 commits intov2from
fix/sell-product-bar-right

Conversation

@he0119
Copy link
Copy Markdown
Contributor

@he0119 he0119 commented Mar 31, 2026

fixed #1764

Summary by Sourcery

修复 SellProduct 流水线以确保重复交易能正常运行,并为修正后的行为增加测试覆盖。

Bug Fixes:

  • 解决 SellProduct 的 SellCore 流水线中点击处理不正确的问题,该问题曾导致用户只能完成一次交易。

Tests:

  • 为 SellProduct 的 SellCore 流水线添加测试夹具(test fixture),以覆盖修正后的多次交易行为。
Original summary in English

Summary by Sourcery

Fix the SellProduct pipeline so repeated trades work correctly and add coverage for the corrected behavior.

Bug Fixes:

  • Resolve an issue in the SellProduct SellCore pipeline where incorrect click handling limited users to a single trade.

Tests:

  • Add a SellProduct SellCore pipeline test fixture to cover the corrected multi-trade behavior.

Copilot AI review requested due to automatic review settings March 31, 2026 00:15
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.

嗨——我已经审查了你的修改,整体看起来非常棒!


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 针对 Issue #1764「售卖产品 点击+号位置错误导致只能进行单次交易」进行修复:通过调整进度条右侧点击节点的匹配排序与点击偏移,使点击位置更稳定准确,并补充对应的回归测试用例覆盖 Win32/ADB。

Changes:

  • 在 SellProduct 的核心流水线中为 SellProductClickBarRight 增加模板匹配结果按分数排序(order_by: Score),并调整点击偏移 target_offset
  • 移除 ADB 专用的 SellProductClickBarRight 偏移覆盖,使其复用主资源流水线的修正参数。
  • 新增 SellProductClickBarRight 的测试用例文件,覆盖多个据点场景并分别校验 Win32/ADB 点击命中框。

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/SellProduct/test_sell_core.json 新增售卖核心流程回归测试,用命中框验证 SellProductClickBarRight 的点击位置(Win32/ADB)
assets/resource/pipeline/SellProduct/SellCore.json SellProductClickBarRight 增加 order_by: Score 并调整 target_offset,提升点击稳定性与准确性
assets/resource_adb/pipeline/SellProduct/SellCore.json 删除 ADB 对 SellProductClickBarRight 的偏移覆盖,统一使用主流水线的修复参数

@MistEO MistEO merged commit 9570e3b into v2 Mar 31, 2026
18 checks passed
@MistEO MistEO deleted the fix/sell-product-bar-right branch March 31, 2026 05:11
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.

售卖产品 点击+号位置错误 只能进行单次交易

3 participants