增添jd的订单拆分接口

This commit is contained in:
lyb
2018-08-09 18:29:13 +08:00
parent 5da53c9afc
commit 76deb832ce
3 changed files with 19 additions and 3 deletions

View File

@@ -144,7 +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错误
//request.Close = true //todo 为了性能考虑
err = platformapi.AccessPlatformAPIWithRetry(a.client, request, a.config, func(response *http.Response) (errLevel string, err error) {
jsonResult1, err := utils.HTTPResponse2Json(response)
if err != nil {