cash finish

This commit is contained in:
苏尹岚
2020-10-20 13:51:30 +08:00
parent 29946b79d9
commit 150ec0701c
4 changed files with 51 additions and 6 deletions

View File

@@ -82,6 +82,7 @@ func (p *PayHandler) CreateRefund() (err error) {
if authInfo, err := p.Ctx.GetV2AuthInfo(); err == nil && authInfo.GetAuthType() == weixin.AuthTypeWxApp {
param.OpenID = authInfo.GetAuthID()
}
globals.SugarLogger.Debugf("CreateRefund wx param: %v", utils.Format4Output(param, false))
result, err := api.WxpayAPI.Transfers(param)
if err == nil {
p.Order.PayFinishedAt = utils.Str2Time(result.PaymentTime)
@@ -94,7 +95,7 @@ func (p *PayHandler) CreateRefund() (err error) {
}
dao.UpdateEntity(dao.GetDB(), p.Order)
if result.ReturnMsg == "" {
err = OnPayFinished(p.Order)
err = OnCashFinished(p.Order)
}
}
} else {