feat(payment): 移植扫呗普通支付2.0

This commit is contained in:
yml
2026-11-16 23:40:23 +08:00
parent 1c47139bf0
commit d9e781ac68
24 changed files with 1228 additions and 62 deletions
+5 -1
View File
@@ -34,7 +34,11 @@ func (r *Repository) Query(ctx context.Context, userID uint64, orderID uint64) (
if runtimeConfig.Channel == nil {
return nil, ErrPaymentUnavailable
}
resp, err := runtimeConfig.Channel.QueryPayment(ctx, payment.ThirdOrderID, payment.ProviderOrderID)
resp, err := runtimeConfig.Channel.QueryPayment(ctx, channelQueryPaymentRequest{
ThirdOrderID: payment.ThirdOrderID,
TraceTime: paymentTraceTime(payment.RawRequest),
ProviderOrderID: payment.ProviderOrderID,
})
if err != nil {
return nil, err
}