From dd412d9cbf7e68a299ee2f19a01541cfca3e0a4a Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 22 Aug 2022 16:24:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/user/wallet.go | 2 +- supply/channel/order.go | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/customer/user/wallet.go b/customer/user/wallet.go index 50aea1f..9df4525 100644 --- a/customer/user/wallet.go +++ b/customer/user/wallet.go @@ -28,7 +28,7 @@ type ArgsWalletDirect struct { } // Direct @Title 直接消费 -func (w *wallet) Direct(ctx context.Context, args ArgsDepositAuditReject) error { +func (w *wallet) Direct(ctx context.Context, args ArgsWalletDirect) error { reply := 0 xClient, err := client.GetClient(w) if err != nil { diff --git a/supply/channel/order.go b/supply/channel/order.go index 4a6d991..b3a2eaf 100644 --- a/supply/channel/order.go +++ b/supply/channel/order.go @@ -95,24 +95,21 @@ func (o *order) Submit(ctx context.Context, channelId string, args ArgsOrderSubm } // LadingBill @Title 提单 -func (o *order) LadingBill(ctx context.Context, channelId string, args ArgsOrderSubmit) (reply ReplyOrderSubmit, err error) { +func (o *order) LadingBill(ctx context.Context, channelId string, orderSn string) (err error) { + reply := 0 xClient, err := client.GetClient(o) if err != nil { return } - err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Submit", args, &reply) - return -} - -type ArgsOrderClose struct { + return xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Submit", orderSn, &reply) } // Close @Title 关闭 -func (o *order) Close(ctx context.Context, channelId string, args ArgsOrderSubmit) (reply ReplyOrderSubmit, err error) { +func (o *order) Close(ctx context.Context, channelId string, orderSn string) (err error) { + reply := 0 xClient, err := client.GetClient(o) if err != nil { return } - err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Submit", args, &reply) - return + return xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Submit", orderSn, &reply) }