This commit is contained in:
邹宗楠
2026-03-25 13:57:18 +08:00
parent 169121cac2
commit 8fd42c70a0

View File

@@ -974,11 +974,17 @@ func BatchInitSkuMtwm2EBai(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, t
}
params["photos"] = photos
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["name"] = storeSku.Name
if storeSku.CategoryName != "" {
params["category_name"] = storeSku.CategoryName
}
if storeSku.SecondaryCategoryName != "" {
params["category_name"] = storeSku.SecondaryCategoryName
}
//params["cat3_id"] = storeSku.CateId
//if storeSku.CategoryCode != "" {
// params["category_id"] = VendorCategoryIDMap[storeSku.CategoryCode]