Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
0339922e60
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      kuaishou/kuaishou.go

+ 2
- 2
kuaishou/kuaishou.go View File

@@ -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
} }


/* /*


Loading…
Cancel
Save