|
@@ -9,6 +9,7 @@ import (
|
|
|
payUtils "github.com/wechatpay-apiv3/wechatpay-go/utils"
|
|
|
"hongze/hz_crm_api/models/cygx"
|
|
|
"hongze/hz_crm_api/services/alarm_msg"
|
|
|
+ "hongze/hz_crm_api/utils"
|
|
|
"log"
|
|
|
)
|
|
|
|
|
@@ -54,7 +55,7 @@ func RefundsApiService(orderDetail *cygx.CygxOrderResp) (statusCode int, err err
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
fmt.Println(err)
|
|
|
- go alarm_msg.SendAlarmMsg(fmt.Sprint("生成预支付交易单失败 ExampleJsapiApiServicePrepay, err:", err.Error()), 2)
|
|
|
+ go alarm_msg.SendAlarmMsg(fmt.Sprint("微信商户退款失败 RefundsApiService, err:", err.Error()), 2)
|
|
|
}
|
|
|
}()
|
|
|
ctx, client, err := getWechatClient()
|
|
@@ -71,7 +72,7 @@ func RefundsApiService(orderDetail *cygx.CygxOrderResp) (statusCode int, err err
|
|
|
OutTradeNo: core.String(orderDetail.OrderCode),
|
|
|
OutRefundNo: core.String("RE" + orderDetail.OrderCode),
|
|
|
Reason: core.String("退款"),
|
|
|
- NotifyUrl: core.String("https://testmfyx.hzinsights.com/api/wechat/wxpay/refunds/notify"),
|
|
|
+ NotifyUrl: core.String(utils.Wx_MFYX_Refund_NotifyUrl),
|
|
|
FundsAccount: refunddomestic.REQFUNDSACCOUNT_AVAILABLE.Ptr(),
|
|
|
Amount: &refunddomestic.AmountReq{
|
|
|
Currency: core.String("CNY"),
|