pay type2
This commit is contained in:
parent
8c327079b0
commit
881eea41a9
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue