From a1980ffb256ec792589e31e620f8db79d4ae9b86 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 30 Aug 2024 15:23:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- egoer/api.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/egoer/api.go b/egoer/api.go index b970c0c..cc2b18c 100644 --- a/egoer/api.go +++ b/egoer/api.go @@ -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 {