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 {