fix: 富友订单支持退款,0 元退款不强制客户收款材料映射
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 9m20s

- decideRefundMethods 将 fuiou 与 wechat、alipay 按线上支付处理,修复富友订单报"该订单的支付方式不支持退款"
- 客户收款信息退款仅在金额大于 0 时强制映射并提交客户收款信息与凭证;0 元退款允许客户收款信息为空

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
邹进
2026-10-23 17:00:00 +09:00
parent 437d1c2c2c
commit 9e45097aa2
3 changed files with 25 additions and 3 deletions

View File

@@ -45,7 +45,8 @@ func (s *Service) decideRefundMethods(ctx context.Context, order *model.Order) (
decision := &refundMethodDecision{}
switch order.PaymentMethod {
case model.PaymentMethodWechat, model.PaymentMethodAlipay:
// 富友是微信支付的上游通道,套餐订单回调写入 fuiou,按线上支付处理。
case model.PaymentMethodWechat, model.PaymentMethodAlipay, model.ProviderTypeFuiou:
payment, err := s.loadPaidPackagePayment(ctx, order.ID)
if err != nil {
return nil, err