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 }