From 678cfe5b8c43b0ff0e6f980f91cfd7d2634e3b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=A8=E8=90=BD=E6=A0=BC=E4=B8=8Ade=E9=97=AE=E5=80=99?= Date: Tue, 5 Nov 2019 18:52:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=94=AF=E4=BB=98=E7=8A=B6=E6=80=81=E5=88=A4?= =?UTF-8?q?=E5=AE=9A=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/wechatclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/wechatclient.go b/client/wechatclient.go index 350cf38..ad85409 100644 --- a/client/wechatclient.go +++ b/client/wechatclient.go @@ -227,7 +227,7 @@ func (c *WeChatClient) Refund(tradeNo string, refundFee int) (bool, error) { fmt.Printf("wechat transfer error, error: %v \n", decodeErr) return false, payErrors.ErrWXPayError } - if payResult.ReturnCode == constant.SUCCESS || payResult.ResultCode == constant.SUCCESS { + if payResult.ReturnCode == constant.SUCCESS && payResult.ResultCode == constant.SUCCESS { return true, nil } return false, payErrors.NewBadRequestError(payErrors.WX_PAY_ERROR, payResult.ErrCodeDes)