1
This commit is contained in:
@@ -13,14 +13,13 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
BaseURL = "https://openapi.uupt.com/v2_0"
|
||||
ReturnSuccess = "ok"
|
||||
ReturnFail = "fail"
|
||||
signKey = "sign"
|
||||
secretKey = "secret"
|
||||
UUOpenID = "8d8464e7c9354c1e88a3f5afa2a7922e"
|
||||
UUAppID = "55c4542ae60e4d348edcfc93b06dd302"
|
||||
letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
|
||||
BaseURL = "https://openapi.uupt.com/v2_0"
|
||||
ReturnSuccess = "ok" //返回成功
|
||||
ReturnSuccessMsg = "callbackSuccess"
|
||||
ReturnFail = "fail" //返回失败
|
||||
signKey = "sign"
|
||||
secretKey = "secret"
|
||||
letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
|
||||
)
|
||||
|
||||
func (a *API) MakeUURequestHead() map[string]interface{} {
|
||||
@@ -81,7 +80,6 @@ func (a *API) AccessAPI(baseUrl, actionApi, method string, bizParams map[string]
|
||||
sendUrl := func() *http.Request {
|
||||
var request *http.Request
|
||||
if method == RequestPost {
|
||||
//request, _ = http.NewRequest(http.MethodPost, fullPath, strings.NewReader(string(data)))
|
||||
request, _ = http.NewRequest(http.MethodPost, fullPath, strings.NewReader(utils.Map2URLValues(bizParams).Encode()))
|
||||
} else {
|
||||
request, _ = http.NewRequest(http.MethodGet, utils.GenerateGetURL(baseUrl, actionApi, bizParams), nil)
|
||||
|
||||
Reference in New Issue
Block a user