tmp
This commit is contained in:
@@ -492,12 +492,20 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
|
||||
}
|
||||
name := filterSensitiveWord(storeSku.Name)
|
||||
wareSaveParam = &jdshopapi.WareSaveParam{
|
||||
CategoryID: int(storeSku.VendorVendorCatID),
|
||||
VenderID: jdshopapi.VendorID2,
|
||||
Length: 100,
|
||||
Wide: 100,
|
||||
Height: 100,
|
||||
Weight: utils.Int2Str(storeSku.Weight),
|
||||
Title: name,
|
||||
CategoryID: int(storeSku.VendorVendorCatID),
|
||||
VenderID: jdshopapi.VendorID2,
|
||||
Length: 100,
|
||||
Wide: 100,
|
||||
Height: 100,
|
||||
Weight: utils.Int2Str(storeSku.Weight),
|
||||
BrandID: jdshopapi.BrandIdNO,
|
||||
WareStatus: 8, //上架待审核
|
||||
ShopCategorys: []int{vendorCatID},
|
||||
PromiseID: -1,
|
||||
MultiCateProps: []interface{}{},
|
||||
PropsSet: []interface{}{},
|
||||
SaleAttrs: []interface{}{},
|
||||
}
|
||||
createSkuParamWare = &jdshopapi.CreateSkuParamWare{
|
||||
Title: name,
|
||||
@@ -559,6 +567,9 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
|
||||
images = append(images, img2)
|
||||
images = append(images, img3)
|
||||
createSkuParamWare.Images = images
|
||||
//jds2图片
|
||||
wareSaveParam.ImageMap.Num0000000000 = append(wareSaveParam.ImageMap.Num0000000000, img1, img2, img3)
|
||||
|
||||
//商品详情拼接
|
||||
var desc string
|
||||
if storeSku.DescImg != "" {
|
||||
@@ -570,6 +581,7 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
|
||||
}
|
||||
createSkuParamWare.MobileDesc = desc
|
||||
createSkuParamWare.Introduction = desc
|
||||
wareSaveParam.Notes = desc
|
||||
|
||||
//设置商品属性值
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user