- 修复饿百GetEbaiCatIDFromName中的bug

This commit is contained in:
gazebo
2019-07-19 09:33:03 +08:00
parent e2c3cb8a29
commit 0ecc8b8727

View File

@@ -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