From f754486b4a56a5cae8478c76c0cbdc028d23026d Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 31 Aug 2022 16:13:01 +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 --- supplier/goods.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/supplier/goods.go b/supplier/goods.go index fdc44a7..5bf7b07 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -155,11 +155,11 @@ func (g *goods) Discard(ctx context.Context, goodsIds []uint) (err error) { } // ReHandle @Title 重新处理商品 -func (g *goods) ReHandle(ctx context.Context, goodsIds []uint) error { - reply := 0 +func (g *goods) ReHandle(ctx context.Context, goodsIds []uint) (reply []AdoptItem, err error) { xClient, err := client.GetClient(g) if err != nil { - return err + return nil, err } - return xClient.Call(ctx, "ReHandle", goodsIds, &reply) + err = xClient.Call(ctx, "ReHandle", goodsIds, &reply) + return }