pay type2

This commit is contained in:
jiangyong27 2024-09-27 12:48:52 +08:00
parent 8c327079b0
commit 881eea41a9
1 changed files with 3 additions and 3 deletions

View File

@ -249,9 +249,10 @@ func (a *Approve) handleRefund(detail *qyweixin.ApproveDetail) {
} else {
err = a.handleRefundWxpay(newData)
}
var title string = "【报销成功】"
if err != nil {
if err == nil {
newData.Status = model.ApprovalRefundStatusPayed
} else {
title = "【报销失败】"
}
@ -270,7 +271,6 @@ func (a *Approve) handleRefund(detail *qyweixin.ApproveDetail) {
log.Errorf("send message error :%s", err.Error())
}
newData.Status = model.ApprovalRefundStatusPayed
if err := dao.NewApprovalRefundDao().Update(newData); err != nil {
log.Errorf("db error :%s", err.Error())
}