diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 01c27327f..96b6733c7 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -4425,3 +4425,8 @@ func focusC4Matters(ctx *jxcontext.Context, db *dao.DaoDB, v *model.Sku) (err er } return err } + +func RefreshJdsSkusStatus(ctx *jxcontext.Context) (err error) { + + return err +} diff --git a/business/partner/purchase/jdshop/store_sku.go b/business/partner/purchase/jdshop/store_sku.go index ab3f1e6a7..fe91ae42b 100644 --- a/business/partner/purchase/jdshop/store_sku.go +++ b/business/partner/purchase/jdshop/store_sku.go @@ -29,7 +29,7 @@ func (p *PurchaseHandler) CreateStoreSkus(ctx *jxcontext.Context, storeID int, v for _, v := range storeSkuList { //判断京东商城上是否有这个商品了,如果有就是添加规格而不是创建商品 name := filterSensitiveWord(v.Name) - result, err := api.JdShopAPI.SearchWare4Valid(name) + result, err := api.JdShopAPI.SearchWare4Valid(name, 0, 0) if err != nil { failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDJDShop], "创建商品") return failedList, err @@ -351,7 +351,7 @@ func updateOrCreateCategories(storeCat *dao.SkuStoreCatInfo, isCreate bool) (err } if isCreate { createShopCategoryParam2.Type = jdshopapi.CreateCatType - createShopCategoryParam2.ID = "1" + createShopCategoryParam2.ID = "0" createShopCategoryParams = append(createShopCategoryParams, createShopCategoryParam2) } else { for _, v := range createShopCategoryParams {