|
|
|
@ -5,7 +5,6 @@ import ( |
|
|
|
"errors" |
|
|
|
"errors" |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
"net/http" |
|
|
|
"net/http" |
|
|
|
"server/common" |
|
|
|
|
|
|
|
"server/modules/pay/base" |
|
|
|
"server/modules/pay/base" |
|
|
|
"server/modules/pay/values" |
|
|
|
"server/modules/pay/values" |
|
|
|
"server/pb" |
|
|
|
"server/pb" |
|
|
|
@ -134,19 +133,15 @@ func (s *Sub) PackWithdrawReq() interface{} { |
|
|
|
Description: "BW", |
|
|
|
Description: "BW", |
|
|
|
NotifyUrl: values.GetWithdrawCallback(values.EaniPay), |
|
|
|
NotifyUrl: values.GetWithdrawCallback(values.EaniPay), |
|
|
|
} |
|
|
|
} |
|
|
|
if r.PayType == common.WithdrawTypeBank { |
|
|
|
send.PayoutMethod.Type = "BANK_ACCOUNT" |
|
|
|
send.PayoutMethod.Type = "BANK_ACCOUNT" |
|
|
|
send.PayoutMethod.Mode = "IMPS" |
|
|
|
send.PayoutMethod.Mode = "IMPS" |
|
|
|
send.PayoutMethod.BankCode = r.PayCode |
|
|
|
send.PayoutMethod.BankCode = r.PayCode |
|
|
|
send.PayoutMethod.BankName = r.BankName |
|
|
|
send.PayoutMethod.BankName = r.BankName |
|
|
|
send.PayoutMethod.AccountNumber = r.CardNo |
|
|
|
send.PayoutMethod.AccountNumber = r.CardNo |
|
|
|
send.PayoutMethod.PayeeName = r.Name |
|
|
|
send.PayoutMethod.PayeeName = r.Name |
|
|
|
send.PayoutMethod.PayeePhone = r.Phone |
|
|
|
send.PayoutMethod.PayeePhone = r.Phone |
|
|
|
send.PayoutMethod.PayeeEmail = r.Email |
|
|
|
send.PayoutMethod.PayeeEmail = r.Email |
|
|
|
send.PayoutMethod.PayeeAddress = r.Address |
|
|
|
send.PayoutMethod.PayeeAddress = r.Address |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
s.Base.ReqData = send |
|
|
|
s.Base.ReqData = send |
|
|
|
return send |
|
|
|
return send |
|
|
|
} |
|
|
|
} |
|
|
|
|