京东商场修改分类

This commit is contained in:
苏尹岚
2020-05-09 16:10:34 +08:00
parent 5b18255c56
commit a13e362943

View File

@@ -220,11 +220,10 @@ func updateOrCreateCategories(storeCat *dao.SkuStoreCatInfo, isCreate bool) (err
createShopCategoryParam2.ID = "1"
createShopCategoryParams = append(createShopCategoryParams, createShopCategoryParam2)
} else {
createShopCategoryParam2.Type = jdshopapi.UpdateCatType
createShopCategoryParam2.ID = storeCat.VendorCatID
for _, v := range createShopCategoryParams {
if v.ID == storeCat.VendorCatID {
v = createShopCategoryParam2
v.Title = createShopCategoryParam2.Title
v.OrderNo = createShopCategoryParam2.OrderNo
}
}
}