From 84a3e4b384ef07cdf15b0a02e0056a9b6edab188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 17 Nov 2020 09:25:34 +0800 Subject: [PATCH] ceshi --- business/jxstore/financial/financial.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/business/jxstore/financial/financial.go b/business/jxstore/financial/financial.go index 07efe18ab..364c78b03 100644 --- a/business/jxstore/financial/financial.go +++ b/business/jxstore/financial/financial.go @@ -144,8 +144,8 @@ func (p *PayHandler) CreateRefund() (err error) { param.OpenID = authInfo.GetAuthID() } globals.SugarLogger.Debugf("CreateRefund wx param: %v", utils.Format4Output(param, false)) - result, err := api.WxpayAPI.Transfers(param) - if err == nil { + result, err2 := api.WxpayAPI.Transfers(param) + if err2 == nil { p.Order.PayFinishedAt = utils.Str2Time(result.PaymentTime) p.Order.Comment = result.DeviceInfo p.Order.OriginalData = utils.Format4Output(result, true) @@ -158,6 +158,8 @@ func (p *PayHandler) CreateRefund() (err error) { if result.ReturnMsg == "" { err = OnCashFinished(p.Order) } + } else { + err = err2 } } else {