- skuId to int64.

This commit is contained in:
gazebo
2018-09-14 15:47:14 +08:00
parent 29ef60e321
commit d94bc8c0d8
2 changed files with 4 additions and 2 deletions

View File

@@ -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
},

View File

@@ -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
}