- skuId to int64.
This commit is contained in:
@@ -149,7 +149,9 @@ func (a *API) AccessAPI(apiStr string, jdParams map[string]interface{}) (retVal
|
|||||||
|
|
||||||
err = platformapi.AccessPlatformAPIWithRetry(a.client,
|
err = platformapi.AccessPlatformAPIWithRetry(a.client,
|
||||||
func() *http.Request {
|
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 为了性能考虑还是不要关闭
|
// request.Close = true //todo 为了性能考虑还是不要关闭
|
||||||
return request
|
return request
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ func (a *API) BatchUpdateOutSkuId(skuInfoList []*SkuIDPair) (retVal interface{},
|
|||||||
// 查询商家已上传商品信息列表接口
|
// 查询商家已上传商品信息列表接口
|
||||||
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=180&apiid=e433b95f74524dab91718432c0358977
|
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=180&apiid=e433b95f74524dab91718432c0358977
|
||||||
// pageNo 从1开始
|
// 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 {
|
if pageNo <= 0 {
|
||||||
pageNo = 1
|
pageNo = 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user