@ -115,6 +115,9 @@ func (s *Sub) PackPayReq() interface{} {
func (s *Sub) PackWithdrawReq() interface{} {
r := s.Base.WithdrawReq
if len(r.Phone) == 12 {
r.Phone = r.Phone[2:]
}
send := &WithdrawReq{
PartnerID: PartnerId,
PartnerWithdrawNo: r.OrderID,
@ -42,6 +42,7 @@ func SetUpRouter() *gin.Engine {
func Callback(e *gin.RouterGroup) {
e.POST("pay/*action", PayCallback)
e.GET("pay/*action", PayCallback)
e.POST("withdraw/*action", WithdrawCallback)