diff --git a/modules/pay/mlpay/values.go b/modules/pay/mlpay/values.go index 910cb9a..fcdf2ca 100644 --- a/modules/pay/mlpay/values.go +++ b/modules/pay/mlpay/values.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"` } diff --git a/modules/pay/routers/routers.go b/modules/pay/routers/routers.go index 6580523..0d4d185 100644 --- a/modules/pay/routers/routers.go +++ b/modules/pay/routers/routers.go @@ -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) }