From b717a449fb39600cae8898c6892fabd2a2271e27 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 4 Jul 2023 14:05:23 +0800 Subject: [PATCH] test --- consume/zhios_recharge_order_fail.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/consume/zhios_recharge_order_fail.go b/consume/zhios_recharge_order_fail.go index 72a1bd5..1aee230 100644 --- a/consume/zhios_recharge_order_fail.go +++ b/consume/zhios_recharge_order_fail.go @@ -88,7 +88,8 @@ func handleZhiosRechargeOrderFail(msg []byte) error { //查询官方接口看看有没有订单 param, aggregationRechargeApiKey := CommAggregation(eg, mid) param["out_trade_nums"] = oid - order, err := recharge.GetOrder(aggregationRechargeApiKey, param) + aggregationRechargeApiUrl := GetApiUrl() + order, err := recharge.GetOrder(aggregationRechargeApiUrl, aggregationRechargeApiKey, param) utils.FilePutContents(mid+"rech", utils.SerializeStr(param)) utils.FilePutContents(mid+"rech", aggregationRechargeApiKey) utils.FilePutContents(mid+"rech", utils.SerializeStr(order)) @@ -116,6 +117,14 @@ func handleZhiosRechargeOrderFail(msg []byte) error { } return nil } +func GetApiUrl() string { + aggregationRechargeApiUrl := "" + aggregationRechargeApiUrlData := offical.SysCfgByKey("aggregation_recharge_api_url") + if aggregationRechargeApiUrlData != nil { + aggregationRechargeApiUrl = aggregationRechargeApiUrlData.V + } + return aggregationRechargeApiUrl +} func ZyRechargeMoneyDeal(mid string, orderId string, uid int, officalAmount float64, types int, title, orderType string) error { info := offical.GetAggregationUserInfo(mid) if info == nil {