ceshi
This commit is contained in:
@@ -144,8 +144,8 @@ func (p *PayHandler) CreateRefund() (err error) {
|
|||||||
param.OpenID = authInfo.GetAuthID()
|
param.OpenID = authInfo.GetAuthID()
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("CreateRefund wx param: %v", utils.Format4Output(param, false))
|
globals.SugarLogger.Debugf("CreateRefund wx param: %v", utils.Format4Output(param, false))
|
||||||
result, err := api.WxpayAPI.Transfers(param)
|
result, err2 := api.WxpayAPI.Transfers(param)
|
||||||
if err == nil {
|
if err2 == nil {
|
||||||
p.Order.PayFinishedAt = utils.Str2Time(result.PaymentTime)
|
p.Order.PayFinishedAt = utils.Str2Time(result.PaymentTime)
|
||||||
p.Order.Comment = result.DeviceInfo
|
p.Order.Comment = result.DeviceInfo
|
||||||
p.Order.OriginalData = utils.Format4Output(result, true)
|
p.Order.OriginalData = utils.Format4Output(result, true)
|
||||||
@@ -158,6 +158,8 @@ func (p *PayHandler) CreateRefund() (err error) {
|
|||||||
if result.ReturnMsg == "" {
|
if result.ReturnMsg == "" {
|
||||||
err = OnCashFinished(p.Order)
|
err = OnCashFinished(p.Order)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
err = err2
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user