|
@@ -7,7 +7,7 @@ import ( |
|
|
"strings" |
|
|
"strings" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func Send(url string, param map[string]string, secret string) string { |
|
|
|
|
|
|
|
|
func HwSend(url string, param map[string]string, secret string) string { |
|
|
sign := getSign(param, secret) |
|
|
sign := getSign(param, secret) |
|
|
param["sign"] = sign |
|
|
param["sign"] = sign |
|
|
for k, v := range param { |
|
|
for k, v := range param { |
|
@@ -23,7 +23,7 @@ func Send(url string, param map[string]string, secret string) string { |
|
|
return url |
|
|
return url |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func SendOrder(url string, param map[string]string, secret string) string { |
|
|
|
|
|
|
|
|
func HwSendOrder(url string, param map[string]string, secret string) string { |
|
|
sign := getSign(param, secret) |
|
|
sign := getSign(param, secret) |
|
|
param["sign"] = sign |
|
|
param["sign"] = sign |
|
|
for k, v := range param { |
|
|
for k, v := range param { |
|
|