From 2390bc542102a055edcf7db9daaea5ef58ed2d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 21 May 2020 10:38:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E5=95=86=E5=9F=8E=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E9=97=A8=E5=BA=97=E5=BA=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/jdshopapi/sku.go | 1 + platformapi/jdshopapi/store.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/platformapi/jdshopapi/sku.go b/platformapi/jdshopapi/sku.go index 1c372f8c..13ad5bd2 100644 --- a/platformapi/jdshopapi/sku.go +++ b/platformapi/jdshopapi/sku.go @@ -457,6 +457,7 @@ func (a *API) SearchWare4Valid(searchKey string) (searchWare4ValidResult *Search param["searchKey"] = searchKey param["searchField"] = "title" } + param["pageSize"] = 100 result, err := a.AccessAPI("jingdong.ware.read.searchWare4Valid", prodURL, param) if err == nil { utils.Map2StructByJson(result["jingdong_ware_read_searchWare4Valid_responce"].(map[string]interface{})["page"], &searchWare4ValidResult, false) diff --git a/platformapi/jdshopapi/store.go b/platformapi/jdshopapi/store.go index d6801482..5fb6bcc8 100644 --- a/platformapi/jdshopapi/store.go +++ b/platformapi/jdshopapi/store.go @@ -155,7 +155,7 @@ func (a *API) FindSkuSiteStock(siteId int, skuId int64) (findSkuSiteStockResult //设置门店sku库存 //https://open.jd.com/home/home#/doc/api?apiCateId=48&apiId=2980&apiName=jingdong.stock.write.updateSkuSiteStock //siteId 门店ID,venderSource 固定传4 -func (a *API) UpdateSkuSiteStock(skuId, stockNum, siteId int) (err error) { +func (a *API) UpdateSkuSiteStock(skuId int64, stockNum, siteId int) (err error) { _, err = a.AccessAPI("jingdong.stock.write.updateSkuSiteStock", prodURL, map[string]interface{}{ "skuId": skuId, "stockNum": stockNum,