From 75d274f991e7bd03d09b1a494987f34110a27021 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 2 Aug 2023 11:27:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- card_pay/api.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/card_pay/api.go b/card_pay/api.go index 946be1d..e0f18c5 100644 --- a/card_pay/api.go +++ b/card_pay/api.go @@ -22,6 +22,9 @@ const ( func CardPaySend(method string, keyArr map[string]string, param map[string]string) (string, error) { url := "https://efps.epaylinks.cn/" + method + if keyArr["dev"] == "1" { + url = "https://test-efps.epaylinks.cn/" + method + } //https://efps.epaylinks.cn/ for key, value := range param { if value == "" { @@ -56,6 +59,9 @@ func CardPaySend(method string, keyArr map[string]string, param map[string]strin } func CardPaySendSecond(method string, keyArr map[string]string, param map[string]interface{}) (string, error) { url := "https://efps.epaylinks.cn/" + method + if keyArr["dev"] == "1" { + url = "https://test-efps.epaylinks.cn/" + method + } //https://efps.epaylinks.cn/ for key, value := range param { if value == "" { @@ -88,6 +94,9 @@ func CardPaySendSecond(method string, keyArr map[string]string, param map[string } func CardPayApplySend(method string, keyArr map[string]string, param map[string]string) (string, error) { url := "https://efps.epaylinks.cn/" + method + if keyArr["dev"] == "1" { + url = "https://test-efps.epaylinks.cn/" + method + } //https://efps.epaylinks.cn/ for key, value := range param { if value == "" {