From 9ee06bfcfc88a8be2eae767b6b3939d9756b5501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 28 Mar 2022 15:04:37 +0800 Subject: [PATCH] fn shouquan --- platformapi/fnpsapi/fnpsapi.go | 1 + 1 file changed, 1 insertion(+) diff --git a/platformapi/fnpsapi/fnpsapi.go b/platformapi/fnpsapi/fnpsapi.go index c283e046..863ac0f6 100644 --- a/platformapi/fnpsapi/fnpsapi.go +++ b/platformapi/fnpsapi/fnpsapi.go @@ -142,6 +142,7 @@ func (a *API) GetAccessToken() (tokenInfo *TokenInfo, err error) { var result map[string]interface{} switch { case a.accessToken != "" && a.refreshToken != "": + parameter["refresh_token"] = a.refreshToken result, err = a.AccessAPI(RefreshTokenUrl, "", RequestPost, parameter) case a.accessToken == "" && a.refreshToken == "": parameter["grant_type"] = "authorization_code"