|
@@ -15,7 +15,7 @@ code 2.2中获取到的code |
|
|
|
|
|
|
|
|
app_secret 开发者的appSecret |
|
|
app_secret 开发者的appSecret |
|
|
*/ |
|
|
*/ |
|
|
func GetKuaishouToken(args map[string]string) { |
|
|
|
|
|
|
|
|
func GetKuaishouToken(args map[string]string) (string, error) { |
|
|
url := "https://openapi.kwaixiaodian.com/oauth2/access_token" |
|
|
url := "https://openapi.kwaixiaodian.com/oauth2/access_token" |
|
|
for k, v := range args { |
|
|
for k, v := range args { |
|
|
if strings.Contains(url, "?") == false { |
|
|
if strings.Contains(url, "?") == false { |
|
@@ -28,7 +28,7 @@ func GetKuaishouToken(args map[string]string) { |
|
|
fmt.Println(url) |
|
|
fmt.Println(url) |
|
|
fmt.Println(string(get)) |
|
|
fmt.Println(string(get)) |
|
|
fmt.Println(err) |
|
|
fmt.Println(err) |
|
|
|
|
|
|
|
|
|
|
|
return string(get), err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|