1
This commit is contained in:
@@ -974,11 +974,17 @@ func BatchInitSkuMtwm2EBai(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, t
|
|||||||
}
|
}
|
||||||
params["photos"] = photos
|
params["photos"] = photos
|
||||||
params["weight"] = storeSku.SkuList[0].Weight
|
params["weight"] = storeSku.SkuList[0].Weight
|
||||||
|
if storeSku.SkuList[0].Weight == "" || utils.Str2Int(storeSku.SkuList[0].Weight) <= 0 {
|
||||||
|
params["weight"] = "1"
|
||||||
|
}
|
||||||
params["upc"] = storeSku.SkuList[0].Upc
|
params["upc"] = storeSku.SkuList[0].Upc
|
||||||
params["name"] = storeSku.Name
|
params["name"] = storeSku.Name
|
||||||
if storeSku.CategoryName != "" {
|
if storeSku.CategoryName != "" {
|
||||||
params["category_name"] = storeSku.CategoryName
|
params["category_name"] = storeSku.CategoryName
|
||||||
}
|
}
|
||||||
|
if storeSku.SecondaryCategoryName != "" {
|
||||||
|
params["category_name"] = storeSku.SecondaryCategoryName
|
||||||
|
}
|
||||||
//params["cat3_id"] = storeSku.CateId
|
//params["cat3_id"] = storeSku.CateId
|
||||||
//if storeSku.CategoryCode != "" {
|
//if storeSku.CategoryCode != "" {
|
||||||
// params["category_id"] = VendorCategoryIDMap[storeSku.CategoryCode]
|
// params["category_id"] = VendorCategoryIDMap[storeSku.CategoryCode]
|
||||||
|
|||||||
Reference in New Issue
Block a user