Merged
Conversation
Contributor
There was a problem hiding this comment.
嗨——我已经 review 了你的改动,看起来很棒!
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进之后的代码审查。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 针对 SellProduct 售卖流程做重构:通过锚点动态切换“调度券不足”提示节点,并用 max_hit 限制“缺货→更换货品”的触发次数,以实现「成功完成一次交易」后不再输出“该据点调度券不足,过一会再来吧”(close #871)。
Changes:
- 在
SellCore.json引入[Anchor]SellProductZeroMoneyHandler,并新增SellProductZeroMoneyWithTip,实现“未成交才提示、成交后不提示”的分流。 - 将“缺货处理”拆分为“先尝试换货(max_hit=1)”与“换货后仍缺货(进入换据点流程)”两个节点,移除
*AfterChange分支。 - 在
Wuling.json/ValleyIV.json的各据点入口设置锚点为SellProductZeroMoneyWithTip,并在成交确认后将锚点切回无提示版本。
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| assets/resource_fast/pipeline/SellProduct/SellCore.json | 核心售卖逻辑重构:缺货换货次数限制、调度券不足提示分流与锚点切换 |
| assets/resource_fast/pipeline/SellProduct/ChangeGoods.json | 更换货品确认后回到统一的 SellProductAtSell 流程 |
| assets/resource_fast/pipeline/SellProduct/Wuling.json | 武陵据点售卖入口设置 SellProductZeroMoneyHandler 锚点为带提示版本 |
| assets/resource_fast/pipeline/SellProduct/ValleyIV.json | 四号谷地各据点售卖入口设置 SellProductZeroMoneyHandler 锚点为带提示版本 |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
嗨,我已经审查了你的改动,一切看起来都很好!
帮我变得更有用!请对每条评论点 👍 或 👎,我会根据你的反馈改进之后的代码审查。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
MistEO
pushed a commit
that referenced
this pull request
Mar 9, 2026
利用 maxhit 限制换货次数,同时在成功卖出货品之后不再提示 `该据点调度券不足,过一会再来吧`。 close #871 应该也能修复 fix #681,但是我这里没有测试环境。 ## Summary by Sourcery 优化 SellProduct 流水线,对商品兑换尝试次数进行上限控制,并在成功销售后避免出现误导性的优惠券不足警告。 Bug Fixes: - 修复在 SellProduct 流程中商品成功售出后,仍然出现优惠券不足警告的问题。 Enhancements: - 在不同地点的 SellProduct 流水线中,基于 `maxhit` 对商品兑换尝试次数施加上限限制。 <details> <summary>Original summary in English</summary> ## Summary by Sourcery Refine SellProduct pipelines to cap product exchange attempts and avoid misleading coupon shortage warnings after successful sales. Bug Fixes: - Prevent coupon shortage warnings from appearing after a product has been successfully sold in SellProduct flows. Enhancements: - Apply maxhit-based limits on product exchange attempts across SellProduct pipelines for different locations. </details> Bug 修复: - 防止在商品成功售出后仍然出现“派发优惠券不足”的警告。 功能增强: - 在不同地点的 SellProduct 流水线中,通过 `maxhit` 配置限制商品兑换次数。 <details> <summary>Original summary in English</summary> ## Summary by Sourcery 优化 SellProduct 流水线,对商品兑换尝试次数进行上限控制,并在成功销售后避免出现误导性的优惠券不足警告。 Bug Fixes: - 修复在 SellProduct 流程中商品成功售出后,仍然出现优惠券不足警告的问题。 Enhancements: - 在不同地点的 SellProduct 流水线中,基于 `maxhit` 对商品兑换尝试次数施加上限限制。 <details> <summary>Original summary in English</summary> ## Summary by Sourcery Refine SellProduct pipelines to cap product exchange attempts and avoid misleading coupon shortage warnings after successful sales. Bug Fixes: - Prevent coupon shortage warnings from appearing after a product has been successfully sold in SellProduct flows. Enhancements: - Apply maxhit-based limits on product exchange attempts across SellProduct pipelines for different locations. </details> </details> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
MistEO
pushed a commit
that referenced
this pull request
Mar 9, 2026
利用 maxhit 限制换货次数,同时在成功卖出货品之后不再提示 `该据点调度券不足,过一会再来吧`。 close #871 应该也能修复 fix #681,但是我这里没有测试环境。 ## Summary by Sourcery 优化 SellProduct 流水线,对商品兑换尝试次数进行上限控制,并在成功销售后避免出现误导性的优惠券不足警告。 Bug Fixes: - 修复在 SellProduct 流程中商品成功售出后,仍然出现优惠券不足警告的问题。 Enhancements: - 在不同地点的 SellProduct 流水线中,基于 `maxhit` 对商品兑换尝试次数施加上限限制。 <details> <summary>Original summary in English</summary> ## Summary by Sourcery Refine SellProduct pipelines to cap product exchange attempts and avoid misleading coupon shortage warnings after successful sales. Bug Fixes: - Prevent coupon shortage warnings from appearing after a product has been successfully sold in SellProduct flows. Enhancements: - Apply maxhit-based limits on product exchange attempts across SellProduct pipelines for different locations. </details> Bug 修复: - 防止在商品成功售出后仍然出现“派发优惠券不足”的警告。 功能增强: - 在不同地点的 SellProduct 流水线中,通过 `maxhit` 配置限制商品兑换次数。 <details> <summary>Original summary in English</summary> ## Summary by Sourcery 优化 SellProduct 流水线,对商品兑换尝试次数进行上限控制,并在成功销售后避免出现误导性的优惠券不足警告。 Bug Fixes: - 修复在 SellProduct 流程中商品成功售出后,仍然出现优惠券不足警告的问题。 Enhancements: - 在不同地点的 SellProduct 流水线中,基于 `maxhit` 对商品兑换尝试次数施加上限限制。 <details> <summary>Original summary in English</summary> ## Summary by Sourcery Refine SellProduct pipelines to cap product exchange attempts and avoid misleading coupon shortage warnings after successful sales. Bug Fixes: - Prevent coupon shortage warnings from appearing after a product has been successfully sold in SellProduct flows. Enhancements: - Apply maxhit-based limits on product exchange attempts across SellProduct pipelines for different locations. </details> </details> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
利用 maxhit 限制换货次数,同时在成功卖出货品之后不再提示
该据点调度券不足,过一会再来吧。close #871
应该也能修复 fix #681,但是我这里没有测试环境。
Summary by Sourcery
优化 SellProduct 流水线,对商品兑换尝试次数进行上限控制,并在成功销售后避免出现误导性的优惠券不足警告。
Bug Fixes:
Enhancements:
maxhit对商品兑换尝试次数施加上限限制。Original summary in English
Summary by Sourcery
Refine SellProduct pipelines to cap product exchange attempts and avoid misleading coupon shortage warnings after successful sales.
Bug Fixes:
Enhancements:
Bug 修复:
功能增强:
maxhit配置限制商品兑换次数。Original summary in English
Summary by Sourcery
优化 SellProduct 流水线,对商品兑换尝试次数进行上限控制,并在成功销售后避免出现误导性的优惠券不足警告。
Bug Fixes:
Enhancements:
maxhit对商品兑换尝试次数施加上限限制。Original summary in English
Summary by Sourcery
Refine SellProduct pipelines to cap product exchange attempts and avoid misleading coupon shortage warnings after successful sales.
Bug Fixes:
Enhancements: