|
|
@@ -4,6 +4,7 @@ import ( |
|
|
|
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" |
|
|
|
"encoding/json" |
|
|
|
"fmt" |
|
|
|
"github.com/syyongx/php2go" |
|
|
|
"github.com/tidwall/gjson" |
|
|
|
"strings" |
|
|
|
) |
|
|
@@ -19,9 +20,9 @@ func GetGoods(key, secret, version string, param map[string]interface{}) []Egoer |
|
|
|
return data |
|
|
|
} |
|
|
|
|
|
|
|
//https://x.egoer.cn/userhome/wordPage 快手团长商品 |
|
|
|
//a8a6bbf6afad4ffa885986c5a7a1d0a7 |
|
|
|
//redu20242672GtFyuLYMwmUqX3 |
|
|
|
// https://x.egoer.cn/userhome/wordPage 快手团长商品 |
|
|
|
// a8a6bbf6afad4ffa885986c5a7a1d0a7 |
|
|
|
// redu20242672GtFyuLYMwmUqX3 |
|
|
|
func PostSend(method, key, secret, version string, param map[string]interface{}) (string, error) { |
|
|
|
urls := "https://open.redu.com/service" + method |
|
|
|
param["appkey"] = key |
|
|
@@ -29,6 +30,9 @@ func PostSend(method, key, secret, version string, param map[string]interface{}) |
|
|
|
param["appSecret"] = secret |
|
|
|
|
|
|
|
for k, v := range param { |
|
|
|
if k == "title" { |
|
|
|
v = php2go.URLEncode(zhios_third_party_utils.AnyToString(v)) |
|
|
|
} |
|
|
|
if strings.Contains(urls, "?") == false { |
|
|
|
urls += "?" + k + "=" + zhios_third_party_utils.AnyToString(v) |
|
|
|
} else { |
|
|
|