|
@@ -22,6 +22,9 @@ const ( |
|
|
|
|
|
|
|
|
func CardPaySend(method string, keyArr map[string]string, param map[string]string) (string, error) { |
|
|
func CardPaySend(method string, keyArr map[string]string, param map[string]string) (string, error) { |
|
|
url := "https://efps.epaylinks.cn/" + method |
|
|
url := "https://efps.epaylinks.cn/" + method |
|
|
|
|
|
if keyArr["dev"] == "1" { |
|
|
|
|
|
url = "https://test-efps.epaylinks.cn/" + method |
|
|
|
|
|
} |
|
|
//https://efps.epaylinks.cn/ |
|
|
//https://efps.epaylinks.cn/ |
|
|
for key, value := range param { |
|
|
for key, value := range param { |
|
|
if value == "" { |
|
|
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) { |
|
|
func CardPaySendSecond(method string, keyArr map[string]string, param map[string]interface{}) (string, error) { |
|
|
url := "https://efps.epaylinks.cn/" + method |
|
|
url := "https://efps.epaylinks.cn/" + method |
|
|
|
|
|
if keyArr["dev"] == "1" { |
|
|
|
|
|
url = "https://test-efps.epaylinks.cn/" + method |
|
|
|
|
|
} |
|
|
//https://efps.epaylinks.cn/ |
|
|
//https://efps.epaylinks.cn/ |
|
|
for key, value := range param { |
|
|
for key, value := range param { |
|
|
if value == "" { |
|
|
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) { |
|
|
func CardPayApplySend(method string, keyArr map[string]string, param map[string]string) (string, error) { |
|
|
url := "https://efps.epaylinks.cn/" + method |
|
|
url := "https://efps.epaylinks.cn/" + method |
|
|
|
|
|
if keyArr["dev"] == "1" { |
|
|
|
|
|
url = "https://test-efps.epaylinks.cn/" + method |
|
|
|
|
|
} |
|
|
//https://efps.epaylinks.cn/ |
|
|
//https://efps.epaylinks.cn/ |
|
|
for key, value := range param { |
|
|
for key, value := range param { |
|
|
if value == "" { |
|
|
if value == "" { |
|
|