From e99270d9d848e2907c3f20d709f5f0485f8021c5 Mon Sep 17 00:00:00 2001 From: loshiqi <553578653@qq.com> Date: Tue, 20 Dec 2022 11:20:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=90=8D=E7=A7=B0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- refund.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/refund.go b/refund.go index 7d810ae..b4c5d35 100644 --- a/refund.go +++ b/refund.go @@ -17,10 +17,10 @@ import ( /** * 商户订单号,退款单号,总金额,退款金额,微信商户id,微信商户平台API私钥,平台证书,商户平台证书序列号,商品名,商品id,退款原因,回调地址 */ -func CreateRefund(order_sn, out_refund_no, total_amount, refund__amount, wx_mp_mch_id, wx_mch_apiclient_key, +func CreateRefund(order_sn, out_refund_no, total_amount, refund_amount, wx_mp_mch_id, wx_mch_apiclient_key, wx_pay_cert, mch_serial_no, title, uuid, reason, notify_url string) (map[string]interface{}, error) { total := helper.ToInt64(helper.FloatMul(total_amount, 100)) //总金额 - refund := helper.ToInt64(helper.FloatMul(refund__amount, 100)) //退款金额 + refund := helper.ToInt64(helper.FloatMul(refund_amount, 100)) //退款金额 log.Println("refund", order_sn, out_refund_no, refund, total, notify_url)