+ partner.GetSkus, jd.GetSkus

This commit is contained in:
gazebo
2019-08-01 10:16:26 +08:00
parent 57829c5f0e
commit 84c0b93ec4
4 changed files with 103 additions and 5 deletions

View File

@@ -348,6 +348,7 @@ func vendorSku2Jx(appFood *mtwmapi.AppFood) (skuName *partner.SkuNameInfo) {
PictureList: appFood.PictureList,
}
if appFood.CategoryName != "" {
// todo, 因为当前我们用的是分类名操作这种方式所以要返回分类名而不是分类code
skuName.VendorCatIDList = []string{appFood.CategoryName}
if appFood.SecondaryCategoryName != "" {
skuName.VendorCatIDList = append(skuName.VendorCatIDList, appFood.SecondaryCategoryName)