1
This commit is contained in:
@@ -3,7 +3,6 @@ package tonglianpayapi
|
|||||||
import (
|
import (
|
||||||
"crypto/md5"
|
"crypto/md5"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -193,8 +192,6 @@ func (a *API) CreateUnitorderOrder(param *CreateUnitorderOrderParam) (result *Cr
|
|||||||
params["paytype"] = param.PayType
|
params["paytype"] = param.PayType
|
||||||
params["sub_appid"] = param.SubAppID
|
params["sub_appid"] = param.SubAppID
|
||||||
retVal, err := a.AccessAPI(sepcAction, params)
|
retVal, err := a.AccessAPI(sepcAction, params)
|
||||||
globals.SugarLogger.Debugf("===========err := %s", utils.Format4Output(retVal, false))
|
|
||||||
globals.SugarLogger.Debugf("===========err := %s", utils.Format4Output(err, false))
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
utils.Map2StructByJson(retVal, &result, false)
|
utils.Map2StructByJson(retVal, &result, false)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package weixinapi
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -94,7 +93,6 @@ func (a *API) CBMessageTemplateSend(userOpenID, templateID, downloadURL string,
|
|||||||
bodyJson["miniprogram"] = miniProgram
|
bodyJson["miniprogram"] = miniProgram
|
||||||
}
|
}
|
||||||
|
|
||||||
globals.SugarLogger.Debugf("cgi-bin/message/template/send======================= : %s", utils.Format4Output(bodyJson, false))
|
|
||||||
_, err = a.AccessAPI("cgi-bin/message/template/send", nil, string(utils.MustMarshal(bodyJson)))
|
_, err = a.AccessAPI("cgi-bin/message/template/send", nil, string(utils.MustMarshal(bodyJson)))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package weixinapi
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"mime/multipart"
|
"mime/multipart"
|
||||||
"net/http"
|
"net/http"
|
||||||
@@ -93,8 +92,6 @@ func (a *API) AccessAPI(action string, params map[string]interface{}, body strin
|
|||||||
params2["access_token"] = accessToken
|
params2["access_token"] = accessToken
|
||||||
}
|
}
|
||||||
|
|
||||||
globals.SugarLogger.Debugf("AccessAPI====================== :%s", utils.Format4Output(params2, false))
|
|
||||||
|
|
||||||
fullURL := utils.GenerateGetURL(prodURL, action, params2)
|
fullURL := utils.GenerateGetURL(prodURL, action, params2)
|
||||||
// baseapi.SugarLogger.Debug(fullURL)
|
// baseapi.SugarLogger.Debug(fullURL)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user