- up
This commit is contained in:
@@ -237,7 +237,7 @@ func (a *API) ShopCategoryCreate(shopID string, parentID int64, name string, ran
|
||||
func (a *API) ShopCategoryGet(shopID string) (cats []*CategoryInfo, err error) {
|
||||
result, err := a.AccessAPI("sku.shop.category.get", utils.Params2Map(KeyShopID, shopID))
|
||||
if err == nil {
|
||||
if inMap, ok := result.Data.(map[string]interface{}); ok { // fuck it
|
||||
if inMap, ok := result.Data.(map[string]interface{}); ok {
|
||||
cats := interface2CatList(inMap["categorys"], 1)
|
||||
return cats, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user