MLPay支付修复

fix/release
mofangmin 1 year ago
parent 96b7aef02c
commit ebc5597113
  1. 3
      modules/pay/mlpay/base.go
  2. 1
      modules/pay/routers/routers.go

@ -115,6 +115,9 @@ func (s *Sub) PackPayReq() interface{} {
func (s *Sub) PackWithdrawReq() interface{} { func (s *Sub) PackWithdrawReq() interface{} {
r := s.Base.WithdrawReq r := s.Base.WithdrawReq
if len(r.Phone) == 12 {
r.Phone = r.Phone[2:]
}
send := &WithdrawReq{ send := &WithdrawReq{
PartnerID: PartnerId, PartnerID: PartnerId,
PartnerWithdrawNo: r.OrderID, PartnerWithdrawNo: r.OrderID,

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

Loading…
Cancel
Save