Skip to content

fix(Common): 暂时注释掉 CloseRewardsButton 的图标识别逻辑#1055

Merged
MistEO merged 1 commit intomainfrom
fix/CloseRewardsButton
Mar 6, 2026
Merged

fix(Common): 暂时注释掉 CloseRewardsButton 的图标识别逻辑#1055
MistEO merged 1 commit intomainfrom
fix/CloseRewardsButton

Conversation

@he0119
Copy link
Contributor

@he0119 he0119 commented Mar 6, 2026

不清楚还有哪些界面的图标不同,所以暂时注释。

Summary by Sourcery

改进:

  • 更新快速流水线资产中的 Common 按钮 JSON 配置,以反映最新行为。
Original summary in English

Summary by Sourcery

Enhancements:

  • Update the Common button JSON configuration under the fast pipeline assets to reflect the latest behavior.

Copilot AI review requested due to automatic review settings March 6, 2026 16:19
Copy link
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.

@MistEO MistEO merged commit 2aed9a6 into main Mar 6, 2026
12 checks passed
@MistEO MistEO deleted the fix/CloseRewardsButton branch March 6, 2026 16:20
Copy link
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 针对通用按钮流水线中的 CloseRewardsButton,暂时移除(注释)用于确认“奖励界面”的图标识别条件,以适配部分界面图标不一致导致的识别失败问题。

Changes:

  • 注释掉 CloseRewardsButtonDectedCloseRewardsImage 子识别条件
  • 同步注释掉 box_index: 1(当前仅剩单子识别时不再需要)

Comment on lines +1023 to 1025
// FIXME: 一件售卖产品里的图标不一样,暂时注释了
// "DectedCloseRewardsImage",
"__CloseRewardsButton"
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

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

这里把 DectedCloseRewardsImage 注释掉后,CloseRewardsButton 实际只剩一个子识别(__CloseRewardsButton),并且 DectedCloseRewardsImage 节点在当前代码中已无任何引用。建议把 all_of 顺序调整为先 __CloseRewardsButton、后(可选)DectedCloseRewardsImage,这样即使未来恢复图标检测也不需要依赖/记得 box_index: 1,避免误点到上方图标区域;同时也可以考虑直接改为使用 __CloseRewardsButton(或补充更多图标模板)而不是保留一个单元素 And

Suggested change
// FIXME: 一件售卖产品里的图标不一样,暂时注释了
// "DectedCloseRewardsImage",
"__CloseRewardsButton"
"__CloseRewardsButton"
// FIXME: 一件售卖产品里的图标不一样,暂时注释了
// "DectedCloseRewardsImage"

Copilot uses AI. Check for mistakes.
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