diff --git a/platformapi/jdapi/jdapi.go b/platformapi/jdapi/jdapi.go index 81d64f91..62b3ca69 100644 --- a/platformapi/jdapi/jdapi.go +++ b/platformapi/jdapi/jdapi.go @@ -149,7 +149,9 @@ func (a *API) AccessAPI(apiStr string, jdParams map[string]interface{}) (retVal err = platformapi.AccessPlatformAPIWithRetry(a.client, func() *http.Request { - request, _ := http.NewRequest(http.MethodGet, utils.GenerateGetURL(prodURL, apiStr, params), nil) + fullURL := utils.GenerateGetURL(prodURL, apiStr, params) + // baseapi.SugarLogger.Debug(fullURL) + request, _ := http.NewRequest(http.MethodGet, fullURL, nil) // request.Close = true //todo 为了性能考虑还是不要关闭 return request }, diff --git a/platformapi/jdapi/sku.go b/platformapi/jdapi/sku.go index 9716fe12..f5d005aa 100644 --- a/platformapi/jdapi/sku.go +++ b/platformapi/jdapi/sku.go @@ -261,7 +261,7 @@ func (a *API) BatchUpdateOutSkuId(skuInfoList []*SkuIDPair) (retVal interface{}, // 查询商家已上传商品信息列表接口 // https://opendj.jd.com/staticnew/widgets/resources.html?groupid=180&apiid=e433b95f74524dab91718432c0358977 // pageNo 从1开始 -func (a *API) QuerySkuInfos(skuName string, skuId, pageNo, pageSize int, isFilterDel bool) (retVal []map[string]interface{}, totalCount int, err error) { +func (a *API) QuerySkuInfos(skuName string, skuId int64, pageNo, pageSize int, isFilterDel bool) (retVal []map[string]interface{}, totalCount int, err error) { if pageNo <= 0 { pageNo = 1 }