fix(internal/services): 修复 heepay 卡类型映射错误- 将 CardType 字段的映射从 "pay_secret" 修改为 "card_type"

- 修正了 heepay 响应数据中卡类型的比较逻辑
This commit is contained in:
danial
2025-07-06 16:57:45 +08:00
parent 2169c9266f
commit b3720cf462

View File

@@ -99,7 +99,7 @@ func (s *OrderServiceImpl) ProcessOrders(ctx context.Context) error {
ProductCode string `mapstructure:"product_code"`
PayKey string `mapstructure:"pay_key"`
PaySecret string `mapstructure:"pay_secret"`
CardType string `mapstructure:"pay_secret"`
CardType string `mapstructure:"card_type"`
}) bool {
return strings.Contains(heePayResp.Data.CardType, item.CardType)
})