|
|
@@ -159,8 +159,8 @@ func GetRefundDataPay(outTradeNo, outRefundNo string, totalPrice int64, transact
|
|
|
us := strings.Split(u, "-")
|
|
|
nonce_str := strings.Join(us, "")
|
|
|
req := map[string]string{
|
|
|
- "mch_id": gzhMchId,
|
|
|
- "appid": gzhAppId,
|
|
|
+ "mch_id": mchId,
|
|
|
+ "appid": appId,
|
|
|
"nonce_str": nonce_str, //fmt.Sprintf("%d", time.Now().Unix()),
|
|
|
"transaction_id": transactionId,
|
|
|
//"out_trade_no": outTradeNo,
|
|
|
@@ -170,7 +170,7 @@ func GetRefundDataPay(outTradeNo, outRefundNo string, totalPrice int64, transact
|
|
|
//"notify_url": notifyUrl,
|
|
|
"refund_desc": remark,
|
|
|
}
|
|
|
- sign := mch.Sign(req, gzhApiKey, nil)
|
|
|
+ sign := mch.Sign(req, apiKey, nil)
|
|
|
req["sign"] = sign
|
|
|
beego.BeeLogger.Warn("%v", req)
|
|
|
ret, err := pay.Refund(mchTLSProxy, req)
|