This commit is contained in:
richboo111
2022-08-19 09:22:22 +08:00
parent 8b6fe6e92b
commit 909cc9ab3f
4 changed files with 11 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"git.rosy.net.cn/baseapi/platformapi"
"git.rosy.net.cn/jx-callback/globals"
"net/http"
"strings"
)
@@ -34,6 +35,7 @@ func (a *API) AccessAPI2(url string, params map[string]interface{}) (retVal map[
if err != nil {
return nil, err
}
globals.SugarLogger.Debug("进入AccessAPI2DATA=================", data)
err = platformapi.AccessPlatformAPIWithRetry(a.client,
func() *http.Request {
request, _ := http.NewRequest(http.MethodPost, url, strings.NewReader(string(data)))
@@ -48,5 +50,6 @@ func (a *API) AccessAPI2(url string, params map[string]interface{}) (retVal map[
retVal = jsonResult1
return platformapi.ErrLevelSuccess, nil
})
globals.SugarLogger.Debug("我也不知道哪里出错返回一下retVal", retVal)
return retVal, err
}