From d1065c38b4b3e0a2d67c5c5c78b368e068513290 Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 22 Aug 2022 09:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/user/wallet.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/customer/user/wallet.go b/customer/user/wallet.go index 58a56ca..50aea1f 100644 --- a/customer/user/wallet.go +++ b/customer/user/wallet.go @@ -62,13 +62,13 @@ type ArgsWalletSuccess struct { } // Success @Title 成功 -func (w *wallet) Success(ctx context.Context, args ArgsWalletSuccess) (walletId uint, err error) { +func (w *wallet) Success(ctx context.Context, args ArgsWalletSuccess) error { + reply := 0 xClient, err := client.GetClient(w) if err != nil { - return + return err } - err = xClient.Call(ctx, "Success", args, &walletId) - return + return xClient.Call(ctx, "Success", args, &reply) } type ArgsWalletFail struct { @@ -77,11 +77,11 @@ type ArgsWalletFail struct { } // Fail @Title 失败 -func (w *wallet) Fail(ctx context.Context, args ArgsWalletFail) (walletId uint, err error) { +func (w *wallet) Fail(ctx context.Context, args ArgsWalletFail) error { + reply := 0 xClient, err := client.GetClient(w) if err != nil { - return + return err } - err = xClient.Call(ctx, "Fail", args, &walletId) - return + return xClient.Call(ctx, "Fail", args, &reply) }