增添jd的订单拆分接口

This commit is contained in:
lyb
2018-08-09 16:52:40 +08:00
parent 9824d8b9fd
commit 5da53c9afc
2 changed files with 13 additions and 0 deletions

View File

@@ -144,6 +144,7 @@ func (a *API) AccessAPI(apiStr string, jdParams map[string]interface{}) (retVal
sign := a.signParams(params)
params[signKey] = sign
request, _ := http.NewRequest(http.MethodGet, utils.GenerateGetURL(prodURL, apiStr, params), nil)
request.Close = true //todo 为了避免EOF错误
err = platformapi.AccessPlatformAPIWithRetry(a.client, request, a.config, func(response *http.Response) (errLevel string, err error) {
jsonResult1, err := utils.HTTPResponse2Json(response)
if err != nil {