Skip to content

fix: 修复订阅支付商品名前后缀不生效#2449

Open
wucm667 wants to merge 1 commit into
Wei-Shaw:mainfrom
wucm667:fix/payment-product-name-affix
Open

fix: 修复订阅支付商品名前后缀不生效#2449
wucm667 wants to merge 1 commit into
Wei-Shaw:mainfrom
wucm667:fix/payment-product-name-affix

Conversation

@wucm667
Copy link
Copy Markdown
Contributor

@wucm667 wucm667 commented May 14, 2026

背景

Fixes #2435。后台已有支付商品名前缀和后缀配置,但订阅套餐支付生成商品名时会直接返回套餐 ProductName 或默认套餐名,没有套用 PRODUCT_NAME_PREFIX / PRODUCT_NAME_SUFFIX

修改内容

  • 订阅套餐支付商品名统一经过支付商品名前后缀拼接逻辑
  • 保持余额充值商品名的既有展示行为
  • 增加订阅套餐自定义商品名和默认商品名的单元测试覆盖

测试

  • go test ./internal/service -run 'TestBuildPaymentSubject|TestCalculateCreateOrderPayAmount|TestBuildCreateOrderResponse'
  • go test ./internal/service

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