mlpay提现回调修改

fix/release
mofangmin 1 year ago
parent f53917fe48
commit b9752a0210
  1. 5
      modules/pay/mlpay/values.go
  2. 1
      modules/pay/routers/routers.go

@ -104,11 +104,12 @@ type WithdrawData struct {
type WithdrawCallbackReq struct {
Status int64 `json:"status" form:"status"` // 0失败 1成功
ErrorMsg int64 `json:"errorMsg" form:"errorMsg" encode:"1"`
ErrorMsg string `json:"errorMsg" form:"errorMsg" encode:"1"`
PartnerWithdrawNo string `json:"partnerWithdrawNo" form:"partnerWithdrawNo"` // 商户订单号
WithdrawNo string `json:"withdrawNo" form:"withdrawNo"` // 平台订单号
ChannelWithdrawNo string `json:"channelWithdrawNo" form:"channelWithdrawNo"` // 上游生成的代收号
Amount int64 `json:"amount" form:"amount"`
Amount string `json:"amount" form:"amount"`
Utr string `json:"utr" form:"utr"`
Sign string `json:"sign" form:"sign"`
}

@ -43,6 +43,7 @@ func SetUpRouter() *gin.Engine {
func Callback(e *gin.RouterGroup) {
e.POST("pay/*action", PayCallback)
e.GET("pay/*action", PayCallback)
e.GET("withdraw/*action", WithdrawCallback)
e.POST("withdraw/*action", WithdrawCallback)
}

Loading…
Cancel
Save