完善支付流程,实现异步事件

This commit is contained in:
2026-07-10 17:11:39 +08:00
parent 5d00111887
commit d961538027
6 changed files with 143 additions and 6 deletions

View File

@@ -233,7 +233,7 @@ type QueryTradeResp struct {
RefundState int32 `json:"refundState"`
DrType *string `json:"drType"`
ExtParam *string `json:"extParam"`
PayTime *int64 `json:"payTime"`
PayTime *string `json:"payTime"`
Subject string `json:"subject"`
TradeFee *int64 `json:"tradeFee"`
CashFee *int64 `json:"cashFee"`
@@ -443,3 +443,11 @@ const (
SftRefundIng SftTradeState = "REFUND_ING"
SftTradeClosed SftTradeState = "TRADE_CLOSED"
)
type SftNotifyType string
var (
SftNotifyTypeTrade = SftNotifyType("sft.trade.notify")
SftNotifyTypeRefund = SftNotifyType("sft.refund.notify")
SftNotifyTypeDivision = SftNotifyType("sft.division.notify")
)