ebai filter

This commit is contained in:
richboo111
2023-02-16 10:05:20 +08:00
parent c32151cdb4
commit 5a3cb1926d
3 changed files with 23 additions and 6 deletions

View File

@@ -239,12 +239,10 @@ func (a *API) ShopCategoryCreate(shopID string, parentID int64, name string, ran
return utils.Interface2Int64WithDefault((result.Data.(map[string]interface{})["category_id"]), 0), nil
}
}
globals.SugarLogger.Debugf("ShopCategoryCreate err====%v", err)
return 0, err
}
func (a *API) ShopCategoryGet(shopID string) (cats []*CategoryInfo, err error) {
globals.SugarLogger.Debugf("ShopCategoryGet shopID====%s", shopID)
result, err := a.AccessAPI("sku.shop.category.get", utils.Params2Map(KeyShopID, shopID))
if err == nil {
if inMap, ok := result.Data.(map[string]interface{}); ok {
@@ -263,7 +261,6 @@ func (a *API) ShopCategoryUpdate(shopID string, categoryID int64, name string, r
"name": name,
"rank": rank,
})
globals.SugarLogger.Debugf("ShopCategoryUpdate err====%v", err)
return err
}
@@ -273,7 +270,6 @@ func (a *API) ShopCategoryDelete(shopID string, categoryID int64) (err error) {
KeyShopID: shopID,
"category_id": categoryID,
})
globals.SugarLogger.Debugf("ShopCategoryDelete err====%v", err)
return err
}