diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index d50193585..92e2109a3 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -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]