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