mirror of
https://git.oceanpay.cc/danial/kami_scripts.git
synced 2025-12-18 22:49:25 +00:00
fix(internal/services): 修复 heepay 卡类型映射错误- 将 CardType 字段的映射从 "pay_secret" 修改为 "card_type"
- 修正了 heepay 响应数据中卡类型的比较逻辑
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user