From 31e9c35e87f495d796d61fe1b7d4aabf2f59bbdd Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 4 Aug 2022 09:37:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/category.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }