- 修复饿百GetEbaiCatIDFromName中的bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user