|
@@ -9,11 +9,11 @@ import ( |
|
|
|
|
|
|
|
|
func send(method string, apiKey string, param map[string]string) (string, error) { |
|
|
func send(method string, apiKey string, param map[string]string) (string, error) { |
|
|
url := "http://8.130.97.197/yrapi.php/" + method |
|
|
url := "http://8.130.97.197/yrapi.php/" + method |
|
|
param["sign"] = getSign(apiKey, param) |
|
|
|
|
|
|
|
|
param["sign"] = GetRechargeSign(apiKey, param) |
|
|
post, err := zhios_third_party_utils.CurlPost(url, param, map[string]string{}) |
|
|
post, err := zhios_third_party_utils.CurlPost(url, param, map[string]string{}) |
|
|
return string(post), err |
|
|
return string(post), err |
|
|
} |
|
|
} |
|
|
func getSign(apiKey string, param map[string]string) string { |
|
|
|
|
|
|
|
|
func GetRechargeSign(apiKey string, param map[string]string) string { |
|
|
str := "" |
|
|
str := "" |
|
|
keys := comm.KsortToStr(param) |
|
|
keys := comm.KsortToStr(param) |
|
|
for _, k := range keys { |
|
|
for _, k := range keys { |
|
|