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) }