diff --git a/platformapi/ebaiapi/shop_sku.go b/platformapi/ebaiapi/shop_sku.go index 0cd64f29..a4f33995 100644 --- a/platformapi/ebaiapi/shop_sku.go +++ b/platformapi/ebaiapi/shop_sku.go @@ -401,6 +401,12 @@ func (a *API) GetEbaiCatIDFromName(shopID, catName string) (ebaiCatID int64) { ebaiCatID = v.CategoryID break } + for _, v2 := range v.Children { + if v2.Name == catName { + ebaiCatID = v2.CategoryID + break + } + } } } return ebaiCatID