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