From bc3ebd642a7f2940c7313483fb68bd814599a7b1 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 11 Oct 2023 14:14:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kuaishou/api.go | 1 + kuaishou/kuaishou.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kuaishou/api.go b/kuaishou/api.go index 08177be..43aadc3 100644 --- a/kuaishou/api.go +++ b/kuaishou/api.go @@ -25,6 +25,7 @@ func SendGet(method string, signSecret string, param map[string]string) (string, } get, err := zhios_third_party_utils.CurlGet(url, nil) fmt.Println(string(get)) + fmt.Println(url) fmt.Println(err) return string(get), err } diff --git a/kuaishou/kuaishou.go b/kuaishou/kuaishou.go index 1f27235..e3fadcc 100644 --- a/kuaishou/kuaishou.go +++ b/kuaishou/kuaishou.go @@ -34,12 +34,13 @@ func GetKuaishouToken(args map[string]string) { /* */ -func GetKuaishouRefreshToken(args map[string]string) { +func GetKuaishouRefreshToken(args map[string]string) (string, error) { url := "https://openapi.kwaixiaodian.com/oauth2/refresh_token" get, err := zhios_third_party_utils.CurlPost(url, args, nil) fmt.Println(url) fmt.Println(string(get)) fmt.Println(err) + return string(get), err } //https://open.kwaixiaodian.com/zone/docs/api?name=open.distribution.investment.activity.open.list&version=1