Skip to content

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

Closed
wucm667 wants to merge 1 commit into
mainfrom
fix/payment-product-name-affix
Closed

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

Conversation

@wucm667
Copy link
Copy Markdown
Owner

@wucm667 wucm667 commented May 14, 2026

背景

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

修改内容

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

测试

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

@github-actions
Copy link
Copy Markdown

Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA).

To sign, please reply with the following comment:

I have read the CLA Document and I hereby sign the CLA

You only need to sign once — it will be valid for all your future contributions to this project.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@wucm667
Copy link
Copy Markdown
Owner Author

wucm667 commented May 14, 2026

已改为提交到 upstream 仓库:Wei-Shaw#2449

@wucm667 wucm667 closed this May 14, 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.

1 participant