cash finish
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user