Skip to content

feat:添加刷新次数耗尽后自动购买#1595

Merged
MistEO merged 9 commits intov2from
feat/CreditShopping
Mar 25, 2026
Merged

feat:添加刷新次数耗尽后自动购买#1595
MistEO merged 9 commits intov2from
feat/CreditShopping

Conversation

@overflow65537
Copy link
Copy Markdown
Member

@overflow65537 overflow65537 commented Mar 25, 2026

Summary by Sourcery

在刷新次数用尽时,添加自动购入点数的行为,并将其集成到点数购买流程和界面文案中。

新功能:

  • 在点数购买流程中,当刷新尝试次数耗尽时,引入自动购入点数的机制。

改进:

  • 更新点数购买流水线(pipeline)配置以支持新的自动购入行为。
  • 调整多种语言的本地化界面文本,以体现更新后的点数购买流程。
  • 移除已弃用的、特定于 ADB 的点数购买流水线配置。
Original summary in English

Summary by Sourcery

Add automatic credit purchase behavior when refresh attempts are exhausted and integrate it into the credit shopping pipelines and UI copy.

New Features:

  • Introduce automatic credit purchase in the credit shopping flow when refresh attempts are exhausted.

Enhancements:

  • Update credit shopping pipeline configurations to support the new automatic purchase behavior.
  • Adjust localized interface text in multiple languages to reflect the updated credit purchase flow.
  • Remove obsolete ADB-specific credit shopping pipeline configuration.

新功能:

  • 当刷新尝试次数用尽时,在积分购买流程中新增自动购买行为。

增强改进:

  • 调整积分购买流程配置,以支持新的自动购买行为。
  • 更新本地化界面文案,以体现新的自动购买流程。
Original summary in English

Summary by Sourcery

在刷新次数用尽时,添加自动购入点数的行为,并将其集成到点数购买流程和界面文案中。

新功能:

  • 在点数购买流程中,当刷新尝试次数耗尽时,引入自动购入点数的机制。

改进:

  • 更新点数购买流水线(pipeline)配置以支持新的自动购入行为。
  • 调整多种语言的本地化界面文本,以体现更新后的点数购买流程。
  • 移除已弃用的、特定于 ADB 的点数购买流水线配置。
Original summary in English

Summary by Sourcery

Add automatic credit purchase behavior when refresh attempts are exhausted and integrate it into the credit shopping pipelines and UI copy.

New Features:

  • Introduce automatic credit purchase in the credit shopping flow when refresh attempts are exhausted.

Enhancements:

  • Update credit shopping pipeline configurations to support the new automatic purchase behavior.
  • Adjust localized interface text in multiple languages to reflect the updated credit purchase flow.
  • Remove obsolete ADB-specific credit shopping pipeline configuration.

新功能:

  • 在点数购买流程中,当刷新尝试次数耗尽时,新增自动购买行为。

增强:

  • 更新点数购买流水线配置,以与新的自动购买行为保持一致。
Original summary in English

Summary by Sourcery

在刷新次数用尽时,添加自动购入点数的行为,并将其集成到点数购买流程和界面文案中。

新功能:

  • 在点数购买流程中,当刷新尝试次数耗尽时,引入自动购入点数的机制。

改进:

  • 更新点数购买流水线(pipeline)配置以支持新的自动购入行为。
  • 调整多种语言的本地化界面文本,以体现更新后的点数购买流程。
  • 移除已弃用的、特定于 ADB 的点数购买流水线配置。
Original summary in English

Summary by Sourcery

Add automatic credit purchase behavior when refresh attempts are exhausted and integrate it into the credit shopping pipelines and UI copy.

New Features:

  • Introduce automatic credit purchase in the credit shopping flow when refresh attempts are exhausted.

Enhancements:

  • Update credit shopping pipeline configurations to support the new automatic purchase behavior.
  • Adjust localized interface text in multiple languages to reflect the updated credit purchase flow.
  • Remove obsolete ADB-specific credit shopping pipeline configuration.

新功能:

  • 当刷新尝试次数用尽时,在积分购买流程中新增自动购买行为。

增强改进:

  • 调整积分购买流程配置,以支持新的自动购买行为。
  • 更新本地化界面文案,以体现新的自动购买流程。
Original summary in English

Summary by Sourcery

在刷新次数用尽时,添加自动购入点数的行为,并将其集成到点数购买流程和界面文案中。

新功能:

  • 在点数购买流程中,当刷新尝试次数耗尽时,引入自动购入点数的机制。

改进:

  • 更新点数购买流水线(pipeline)配置以支持新的自动购入行为。
  • 调整多种语言的本地化界面文本,以体现更新后的点数购买流程。
  • 移除已弃用的、特定于 ADB 的点数购买流水线配置。
Original summary in English

Summary by Sourcery

Add automatic credit purchase behavior when refresh attempts are exhausted and integrate it into the credit shopping pipelines and UI copy.

New Features:

  • Introduce automatic credit purchase in the credit shopping flow when refresh attempts are exhausted.

Enhancements:

  • Update credit shopping pipeline configurations to support the new automatic purchase behavior.
  • Adjust localized interface text in multiple languages to reflect the updated credit purchase flow.
  • Remove obsolete ADB-specific credit shopping pipeline configuration.

@overflow65537 overflow65537 marked this pull request as ready for review March 25, 2026 10:37
Copilot AI review requested due to automatic review settings March 25, 2026 10:37
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 - 我在这里给出了一些整体性的反馈:

  • 对于“刷新次数耗尽时自动购买”的新逻辑,建议在 pipeline 中增加一个清晰的配置/开关,这样可以在不改动代码的情况下切换或调整行为,尤其可以避免在某些市场给用户带来意外的体验。
  • 请再次确认与自动购买相关的新/修改的本地化 key 在所有语言文件中保持一致(key 相同、没有遗留或重复的 key),以避免运行时意外回退到默认文案。
  • CreditShopping/Shopping.json 的 pipeline 中,请确保在自动购买失败时(例如余额不足或网络错误)有一条明确的回退路径,这样在刷新尝试次数耗尽后,用户不会处于无法继续使用的状态。
AI 代理的提示词
Please address the comments from this code review:

## Overall Comments
- 对于“刷新次数耗尽时自动购买”的新逻辑,建议在 pipeline 中增加一个清晰的配置/开关,这样可以在不改动代码的情况下切换或调整行为,尤其可以避免在某些市场给用户带来意外的体验。
- 请再次确认与自动购买相关的新/修改的本地化 key 在所有语言文件中保持一致(key 相同、没有遗留或重复的 key),以避免运行时意外回退到默认文案。
-`CreditShopping/Shopping.json` 的 pipeline 中,请确保在自动购买失败时(例如余额不足或网络错误)有一条明确的回退路径,这样在刷新尝试次数耗尽后,用户不会处于无法继续使用的状态。

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

Hey - I've left some high level feedback:

  • For the new auto-purchase on refresh exhaustion, consider adding a clear configuration/flag in the pipeline so the behavior can be toggled or adjusted without further code changes, especially to avoid surprising users in certain markets.
  • Please double-check that the new/changed localization keys for auto-purchase are consistent across all locale files (same keys, no dangling or duplicated keys), so the runtime doesn’t fall back unexpectedly to default strings.
  • In the CreditShopping/Shopping.json pipeline, ensure there is an explicit fallback path when auto-purchase fails (e.g., insufficient balance or network error) so the user isn’t left in an unusable state after refresh attempts are exhausted.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- For the new auto-purchase on refresh exhaustion, consider adding a clear configuration/flag in the pipeline so the behavior can be toggled or adjusted without further code changes, especially to avoid surprising users in certain markets.
- Please double-check that the new/changed localization keys for auto-purchase are consistent across all locale files (same keys, no dangling or duplicated keys), so the runtime doesn’t fall back unexpectedly to default strings.
- In the `CreditShopping/Shopping.json` pipeline, ensure there is an explicit fallback path when auto-purchase fails (e.g., insufficient balance or network error) so the user isn’t left in an unusable state after refresh attempts are exhausted.

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 在信用点购物(CreditShopping)流程中补充“刷新次数耗尽后自动购买”的分支,并同步更新多语言界面文案,以适配新的行为与提示。

Changes:

  • 在 CreditShopping 扫描/ADB 特殊流程的 next 列表中插入“刷新次数耗尽时直接购买”的节点。
  • 新增 CreditShoppingRefreshCountReached 节点:检测“今日刷新次数已用尽”提示后,直接点击可购买物品进入购买流程。
  • 更新 zh_cn/zh_tw/en_us/ja_jp/ko_kr 的提示文案与选项说明,描述刷新次数耗尽时的处理。

Reviewed changes

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

Show a summary per file
File Description
assets/resource/pipeline/CreditShopping/Shopping.json 增加刷新次数耗尽检测节点,并调整扫描流程的 next 顺序以触发自动购买
assets/locales/interface/zh_cn.json 新增对应 task 文案并更新选项说明(简体中文)
assets/locales/interface/zh_tw.json 新增对应 task 文案并更新选项说明(繁体中文)
assets/locales/interface/en_us.json 新增对应 task 文案并更新选项说明(英文)
assets/locales/interface/ja_jp.json 新增对应 task 文案并更新选项说明(日文)
assets/locales/interface/ko_kr.json 新增对应 task 文案并更新选项说明(韩文)

@overflow65537 overflow65537 marked this pull request as draft March 25, 2026 13:02
@overflow65537 overflow65537 marked this pull request as draft March 25, 2026 13:02
@overflow65537 overflow65537 marked this pull request as ready for review March 25, 2026 13:40
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 - 我给出了几条高层面的反馈:

  • 在为新的自动购买行为更新 CreditShopping 流水线(pipeline)的 JSON 时,确保所有新增或重命名的状态/事件在所有相关的流水线文件(BuyItem、BuyItemFocus、ClaimCredit、GoToShop、Shopping)中都被一致地引用,避免出现孤立或失效的状态转换。
  • 删除 assets/resource_adb/pipeline/CreditShopping/GoToShop.json 看起来会改变 ADB 流程的行为;请核实之前引用该路径的任何工具或构建脚本,现在是否已经改为使用主路径 assets/resource/pipeline/.../GoToShop.json,或者已经被显式更新,以避免在运行时查找已删除的文件。
面向 AI 代理的提示
Please address the comments from this code review:

## Overall Comments
- When updating the CreditShopping pipeline JSONs for the new auto-purchase behavior, ensure that any new or renamed states/events are consistently referenced across all related pipeline files (BuyItem, BuyItemFocus, ClaimCredit, GoToShop, Shopping) to avoid orphaned or dead transitions.
- The removal of `assets/resource_adb/pipeline/CreditShopping/GoToShop.json` looks like a behavior change for ADB flows; verify that any tooling or build scripts that previously referenced this path now either use the main `assets/resource/pipeline/.../GoToShop.json` or are explicitly updated to avoid runtime lookups of the deleted file.

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

Hey - I've left some high level feedback:

  • When updating the CreditShopping pipeline JSONs for the new auto-purchase behavior, ensure that any new or renamed states/events are consistently referenced across all related pipeline files (BuyItem, BuyItemFocus, ClaimCredit, GoToShop, Shopping) to avoid orphaned or dead transitions.
  • The removal of assets/resource_adb/pipeline/CreditShopping/GoToShop.json looks like a behavior change for ADB flows; verify that any tooling or build scripts that previously referenced this path now either use the main assets/resource/pipeline/.../GoToShop.json or are explicitly updated to avoid runtime lookups of the deleted file.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- When updating the CreditShopping pipeline JSONs for the new auto-purchase behavior, ensure that any new or renamed states/events are consistently referenced across all related pipeline files (BuyItem, BuyItemFocus, ClaimCredit, GoToShop, Shopping) to avoid orphaned or dead transitions.
- The removal of `assets/resource_adb/pipeline/CreditShopping/GoToShop.json` looks like a behavior change for ADB flows; verify that any tooling or build scripts that previously referenced this path now either use the main `assets/resource/pipeline/.../GoToShop.json` or are explicitly updated to avoid runtime lookups of the deleted file.

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 d04ec1b into v2 Mar 25, 2026
18 checks passed
@MistEO MistEO deleted the feat/CreditShopping branch March 25, 2026 15:43
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