修改支付参数

This commit is contained in:
2024-08-14 14:12:25 +08:00
parent df10a9a6cd
commit d5881671af
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ func (r *OrderMemberService) OrderRefund(tx *gorm.DB, order *model.OrderMember,
Reason: refundReason,
RefundAmount: int64(*refundAmount * 100),
PaymentAmountTotal: int64(order.PaymentAmountTotal * 100),
NotifyUrl: config.C.Wechat.RefundNotifyDomain + config.C.Wechat.MemberRefundNotifyUrl,
NotifyUrl: config.C.Wechat.NotifyDomain + config.C.Wechat.MemberRefundNotifyUrl,
}
refund, err := refundRequest.Refund()
+1 -1
View File
@@ -139,7 +139,7 @@ func (r *OrderSingleService) OrderRefund(tx *gorm.DB, order *model.OrderSingle,
Reason: refundReason,
RefundAmount: int64(*refundAmount * 100),
PaymentAmountTotal: int64(order.PaymentAmountTotal * 100),
NotifyUrl: config.C.Wechat.RefundNotifyDomain + config.C.Wechat.SingleRefundNotifyUrl,
NotifyUrl: config.C.Wechat.NotifyDomain + config.C.Wechat.SingleRefundNotifyUrl,
}
refund, err := refundRequest.Refund()