Skip to content

refactor: 重构信用点商店选项#1652

Merged
MistEO merged 12 commits intov2from
backup/creditshopping-legacy-head
Mar 29, 2026
Merged

refactor: 重构信用点商店选项#1652
MistEO merged 12 commits intov2from
backup/creditshopping-legacy-head

Conversation

@overflow65537
Copy link
Copy Markdown
Member

@overflow65537 overflow65537 commented Mar 27, 2026

Summary by Sourcery

重构积分商店物品选择逻辑,从基于黑名单的过滤改为使用多级优先级分组。

New Features:

  • 为积分商店基于 OCR 的物品选择引入二级和三级优先级关键词分组。

Enhancements:

  • 用基于优先级的关键词匹配逻辑替换积分商店的黑名单匹配逻辑,并将新选项在流水线和任务配置中贯穿传递。

Documentation:

  • 更新所有支持语言中的本地化 UI 字符串,以反映新的基于优先级的积分商店选项。
Original summary in English

Summary by Sourcery

Refactor credit shop item selection to use multi-level priority groups instead of a blacklist-based filter.

New Features:

  • Introduce second- and third-priority keyword groups for credit shop OCR-based item selection.

Enhancements:

  • Replace the credit shop blacklist matching logic with priority-based keyword matching and propagate the new options through pipeline and task configurations.

Documentation:

  • Update localized UI strings in all supported languages to reflect the new priority-based credit shop options.

增强内容:

  • 将信用购物的黑名单匹配机制替换为独立的第二和第三优先级关键词分组及对应期望规则。
  • 更新信用购物流水线和任务配置,以使用基于优先级的新选项进行商品选择。

文档:

  • 更新各支持语言的界面本地化字符串,以反映基于优先级的全新信用购物选项。
Original summary in English

Summary by Sourcery

重构积分商店物品选择逻辑,从基于黑名单的过滤改为使用多级优先级分组。

New Features:

  • 为积分商店基于 OCR 的物品选择引入二级和三级优先级关键词分组。

Enhancements:

  • 用基于优先级的关键词匹配逻辑替换积分商店的黑名单匹配逻辑,并将新选项在流水线和任务配置中贯穿传递。

Documentation:

  • 更新所有支持语言中的本地化 UI 字符串,以反映新的基于优先级的积分商店选项。
Original summary in English

Summary by Sourcery

Refactor credit shop item selection to use multi-level priority groups instead of a blacklist-based filter.

New Features:

  • Introduce second- and third-priority keyword groups for credit shop OCR-based item selection.

Enhancements:

  • Replace the credit shop blacklist matching logic with priority-based keyword matching and propagate the new options through pipeline and task configurations.

Documentation:

  • Update localized UI strings in all supported languages to reflect the new priority-based credit shop options.

@overflow65537 overflow65537 changed the title refactor: 重构信用电商店选项 refactor: 重构信用点商店选项 Mar 27, 2026
@overflow65537 overflow65537 marked this pull request as ready for review March 29, 2026 13:36
Copilot AI review requested due to automatic review settings March 29, 2026 13:36
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.

@overflow65537
Copy link
Copy Markdown
Member Author

哦话说这些选项重构了之后,用户那边是什么体现
里面的选项名字都不一样了(

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 将“信用点商店购买策略”从原先的白名单/黑名单逻辑重构为 1/2/3 级优先购买(每级可配置物品与折扣阈值),并同步更新任务预设、流水线节点与 Go 侧参数解析以支持新的配置方式。

Changes:

  • 将 CreditShopping 任务选项改为 Priority1/2/3(含物品列表与折扣阈值),并更新预设任务使用新选项
  • 更新 CreditShopping 流水线:新增 Priority2/3 购买节点与对应 OCR/折扣识别节点
  • Go service 侧改为读取 Priority2/3 的 attach 关键词并动态覆盖 OCR expected

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
assets/tasks/preset/QuickDaily.json 预设任务改用优先级购买配置与折扣阈值
assets/tasks/preset/DailyFull.json 同上,更新全量日常预设的信用点购物选项
assets/tasks/CreditShopping.json 重构任务 option 结构:加入 Priority1/2/3 及各自折扣阈值与 pipeline override
assets/resource/pipeline/CreditShopping/Shopping.json 流水线加入 Priority2/3 购买节点并调整扫描顺序与描述
assets/resource/pipeline/CreditShopping/Item.json 新增 Priority2/3 OCR 与折扣识别节点定义
assets/locales/interface/zh_tw.json 更新 UI 文案(含新增优先级选项)
assets/locales/interface/zh_cn.json 更新 UI 文案(含新增优先级选项)
assets/locales/interface/ko_kr.json 更新 UI 文案(含新增优先级选项)
assets/locales/interface/ja_jp.json 更新 UI 文案(含新增优先级选项)
assets/locales/interface/en_us.json 更新 UI 文案(含新增优先级选项)
agent/go-service/creditshopping/creditshopping.go Go 侧解析 attach 关键词并覆盖 Priority2/3 OCR expected(替代黑名单正则)

@MistEO MistEO merged commit f2c8899 into v2 Mar 29, 2026
18 checks passed
@MistEO MistEO deleted the backup/creditshopping-legacy-head branch March 29, 2026 16:33
@ocsin1
Copy link
Copy Markdown
Contributor

ocsin1 commented Mar 30, 2026

哦话说这些选项重构了之后,用户那边是什么体现 里面的选项名字都不一样了(

应该是改过名字的选项都会变为默认,对于继承不了配置的重构我建议还是要改一下任务名

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.

4 participants