京东商场修改分类
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user