diff --git a/supply/category.go b/supply/category.go index 31ca667..eb24c09 100644 --- a/supply/category.go +++ b/supply/category.go @@ -31,7 +31,11 @@ type ArgsCategoryLists struct { // Lists @Title 分类列表 func (c *category) Lists(ctx context.Context, args ArgsCategoryLists) (result []CategoryItem, err error) { - err = client.GetClient(c).Call(ctx, "Lists", args, &result) + xClient, err := client.GetClient(c) + if err != nil { + return + } + err = xClient.Call(ctx, "Lists", args, &result) return }