From 8e4e1e8a4c20c50db7d9df8563722f09195e4fd6 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, 26 Nov 2020 11:41:15 +0800 Subject: [PATCH] chuangjian --- business/partner/purchase/jdshop/store_sku.go | 36 +++++++++++-------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/business/partner/purchase/jdshop/store_sku.go b/business/partner/purchase/jdshop/store_sku.go index bd5a72920..ccd374558 100644 --- a/business/partner/purchase/jdshop/store_sku.go +++ b/business/partner/purchase/jdshop/store_sku.go @@ -689,20 +689,28 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j } name := filterSensitiveWord(storeSku.Name) wareSaveParam = &jdshopapi.WareSaveParam{ - Title: name, - CategoryID: int(storeSku.VendorVendorCatID), - VenderID: jdshopapi.VendorID2, - Length: 200, - Wide: 200, - Height: 100, - Weight: "1", - BrandID: jdshopapi.BrandIdNO, - WareStatus: 8, //上架待审核 - ShopCategorys: []int{vendorCatID}, - PromiseID: 0, - MultiCateProps: []interface{}{}, - PropsSet: []interface{}{}, - SaleAttrs: []interface{}{}, + WareID: 0, + Title: name, + CategoryID: int(storeSku.VendorVendorCatID), + LastCategoryID: int(storeSku.VendorVendorCatID), + VenderID: jdshopapi.VendorID2, + Length: 200, + Wide: 200, + Height: 100, + Weight: "1", + BrandID: jdshopapi.BrandIdNO, + WareStatus: 8, //上架待审核,没用,建好了都要再上架一次 + ShopCategorys: []int{vendorCatID}, + PromiseID: 0, + MultiCateProps: []interface{}{}, + PropsSet: []interface{}{}, + SaleAttrs: []interface{}{}, + TransparentImageAudit: []interface{}{}, + OptionType: 1, + AvailableFeatures: []interface{}{}, + CharacteristicService: []interface{}{}, + ExtendFeatures: []interface{}{}, + TempID: "10569615110055200", //必须要这个东西,不知道是啥 } createSkuParamWare = &jdshopapi.CreateSkuParamWare{ Title: name,