Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
6a7063ea57
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      zero_buy/api.go

+ 2
- 2
zero_buy/api.go View File

@@ -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)


Loading…
Cancel
Save