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 }