From 8c327079b0472cec3e5296ebdf8fef408b5ed95a Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Fri, 27 Sep 2024 12:44:21 +0800 Subject: [PATCH] pay type --- server/service/qyweixin_approve.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/service/qyweixin_approve.go b/server/service/qyweixin_approve.go index 75af955..3cacc84 100644 --- a/server/service/qyweixin_approve.go +++ b/server/service/qyweixin_approve.go @@ -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 {