From 5d85dc3880cb587668f04b80e39b45fd44960b43 Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 29 Apr 2024 15:59:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/channel/order.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/supply/channel/order.go b/supply/channel/order.go index 43ec2d5..51932b8 100644 --- a/supply/channel/order.go +++ b/supply/channel/order.go @@ -291,22 +291,22 @@ type OrderDetailOrderSub struct { } // Detail @Title 订单详情 -func (o *order) Detail(ctx context.Context, channelId string, orderSn string) (reply ReplyOrderDetail, err error) { +func (o *order) Detail(ctx context.Context, channelId string, args ArgsOrderDetail) (reply ReplyOrderDetail, err error) { xClient, err := client.GetClient(o) if err != nil { return } - err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Detail", orderSn, &reply) + err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Detail", args, &reply) return } // SubDetail @Title 子订单详情 -func (o *order) SubDetail(ctx context.Context, channelId, orderSn string) (reply OrderItem, err error) { +func (o *order) SubDetail(ctx context.Context, channelId, orderSubSn string) (reply OrderItem, err error) { xClient, err := client.GetClient(o) if err != nil { return } - err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "SubDetail", orderSn, &reply) + err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "SubDetail", orderSubSn, &reply) return }