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