Skip to content

fix: show product channel multiplier in storefront - #20

Merged
YunfanGoForIt merged 1 commit into
mainfrom
fix/storefront-channel-multiplier
Oct 28, 2026
Merged

YunfanGoForIt merged 1 commit into
mainfrom
fix/storefront-channel-multiplier

Conversation

@YunfanGoForIt

Copy link
Copy Markdown

问题与修复

生产商品 #10 的已发布版本只有渠道 #2,倍率为 0.75,但购买页从遗留 billing_multiplier=1.00 读取并显示“版本基准价 ×1.00”。扣费逻辑已按渠道倍率执行;本 PR 只修正购买页接口展示。

新渠道定价模式从 channel_rates 读取倍率:单渠道或所有渠道倍率相同时展示该值;多渠道倍率不同时不声称存在一个统一倍率。历史价格版本继续读取原字段。

验证

  • 先运行新增回归测试,观察到单渠道、同倍率双渠道及不同倍率双渠道均错误返回 1.00。
  • 修复后 go test ./controller -run TestSubscriptionBillingMultipliersUseProductChannelRates -count=1 通过。
  • go test ./controller ./model ./relay/helper:2091 项通过。
  • 仅变更订阅展示接口和回归测试,未改扣费、商品配置或数据库。

依据:IF.Link 30 号商品层方案;该 fork 的 Issues 已关闭,用户此前明确允许直接引用该方案。此改动由 AI 辅助完成。

@YunfanGoForIt
YunfanGoForIt merged commit 926fa23 into main Oct 28, 2026
@YunfanGoForIt
YunfanGoForIt deleted the fix/storefront-channel-multiplier branch October 28, 2026 03:37
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.

1 participant