This commit is contained in:
jiangyong27 2024-09-27 12:44:21 +08:00
parent 4889e59d61
commit 8c327079b0
1 changed files with 3 additions and 0 deletions

View File

@ -242,8 +242,10 @@ func (a *Approve) handleRefund(detail *qyweixin.ApproveDetail) {
}
// 支付费用
var payType = "weixin"
if staff != nil && staff.AlipayUid != "" {
err = a.handleRefundAlipay(staff, newData)
payType = "alipay"
} else {
err = a.handleRefundWxpay(newData)
}
@ -257,6 +259,7 @@ func (a *Approve) handleRefund(detail *qyweixin.ApproveDetail) {
message = append(message, title)
message = append(message, fmt.Sprintf("发放金额:%s", fmt.Sprintf("%.2f", newData.RefundAmount)))
message = append(message, fmt.Sprintf("费用类型:%s", newData.RefundType))
message = append(message, fmt.Sprintf("支付方式:%s", payType))
message = append(message, fmt.Sprintf("员工名称:%s", newData.Username))
message = append(message, fmt.Sprintf("费用说明:%s", newData.RefundRemark))
if err != nil {