From 6920019c5ea5555520e96dc6a5d4efb7e9da5ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Thu, 17 Dec 2020 16:22:41 +0800 Subject: [PATCH] 'commit' --- dsBaseWeb/Sso/Sso.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dsBaseWeb/Sso/Sso.go b/dsBaseWeb/Sso/Sso.go index 877a981f..5fcce49d 100644 --- a/dsBaseWeb/Sso/Sso.go +++ b/dsBaseWeb/Sso/Sso.go @@ -6,7 +6,6 @@ import ( "dsBaseWeb/Utils/ConfigUtil" "dsBaseWeb/Utils/RedisUtil" "encoding/base64" - "fmt" "github.com/gin-gonic/gin" "github.com/valyala/fasthttp" "net/http" @@ -74,12 +73,7 @@ func CheckSsoCode(c *gin.Context) { args.Add("redirect_uri", redirectURI) //用POST调用统一认证验证code接口 - _, resp, err := fasthttp.Post(nil, checkCodeUrl, args) - if err != nil { - fmt.Print(err.Error()) - return - } - + _, resp, _ := fasthttp.Post(nil, checkCodeUrl, args) //统一认证返回的信息 respMap := CommonUtil.ConvertJsonStringToMap(string(resp)) accessToken := respMap["access_token"].(string)