From afd7e002c45638d93da3abbf1fad9e9fcdd2576d Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 22 Sep 2022 15:24:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A1=AE=E8=AE=A4=E6=94=B6?= =?UTF-8?q?=E8=8E=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/channel/order.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/supply/channel/order.go b/supply/channel/order.go index 87f073f..9fb432f 100644 --- a/supply/channel/order.go +++ b/supply/channel/order.go @@ -214,3 +214,13 @@ func (o *order) Trajectory(ctx context.Context, channelId string, orderSn string err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Trajectory", orderSn, &reply) return } + +// Finish @Title 确认收货 +func (o *order) Finish(ctx context.Context, channelId string, orderSn string) (err error) { + reply := 0 + xClient, err := client.GetClient(o) + if err != nil { + return + } + return xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Finish", orderSn, &reply) +}