|
@@ -11,9 +11,9 @@ func ZeroBuyUrl(appSecret string, param map[string]string) string { |
|
|
param["deviceID"] = strings.ReplaceAll(param["deviceID"], " ", "") |
|
|
param["deviceID"] = strings.ReplaceAll(param["deviceID"], " ", "") |
|
|
for k, v := range param { |
|
|
for k, v := range param { |
|
|
if strings.Contains(url, "?") == false { |
|
|
if strings.Contains(url, "?") == false { |
|
|
url += "?" + k + "=" + php2go.URLEncode(v) |
|
|
|
|
|
|
|
|
url += "?" + k + "=" + v |
|
|
} else { |
|
|
} else { |
|
|
url += "&" + k + "=" + php2go.URLEncode(v) |
|
|
|
|
|
|
|
|
url += "&" + k + "=" + v |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
sign := GetSign(appSecret, param) |
|
|
sign := GetSign(appSecret, param) |
|
|