1
This commit is contained in:
@@ -182,10 +182,10 @@ func BatchInitData(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi *mt
|
||||
if attr != "" {
|
||||
foodData["common_attr_value"] = attr
|
||||
}
|
||||
if storeSku.CategoryCode != "" {
|
||||
foodData["category_code"] = storeSku.CategoryCode
|
||||
if storeSku.SecondaryCategoryCode != "" {
|
||||
foodData["category_code"] = storeSku.SecondaryCategoryCode
|
||||
} else {
|
||||
foodData["category_name"] = storeSku.CategoryName
|
||||
foodData["category_name"] = storeSku.SecondaryCategoryName
|
||||
}
|
||||
foodData["is_sold_out"] = storeSku.IsSoldOut
|
||||
foodData["picture"] = storeSku.Picture
|
||||
|
||||
Reference in New Issue
Block a user