1
This commit is contained in:
@@ -3,6 +3,7 @@ package controllers
|
|||||||
import (
|
import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -172,6 +173,8 @@ func (c *Auth2Controller) GetTokenInfo() {
|
|||||||
c.callGetTokenInfo(func(params *tAuth2GetTokenInfoParams) (retVal interface{}, errCode string, err error) {
|
c.callGetTokenInfo(func(params *tAuth2GetTokenInfoParams) (retVal interface{}, errCode string, err error) {
|
||||||
if true { //auth2.IsV2Token(params.Token) {
|
if true { //auth2.IsV2Token(params.Token) {
|
||||||
retVal, err = auth2.GetTokenInfo(params.Token)
|
retVal, err = auth2.GetTokenInfo(params.Token)
|
||||||
|
globals.SugarLogger.Debugf("======params.Token= %s", params.Token)
|
||||||
|
globals.SugarLogger.Debugf("======params.retVal= %s", utils.Format4Output(retVal, false))
|
||||||
} else {
|
} else {
|
||||||
// retVal, err = auth.GetUserInfo(params.Token)
|
// retVal, err = auth.GetUserInfo(params.Token)
|
||||||
}
|
}
|
||||||
@@ -295,6 +298,8 @@ func (c *Auth2Controller) DingDingOAuth2() {
|
|||||||
Desc: err.Error(),
|
Desc: err.Error(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("=========authInfo := %s", utils.Format4Output(authInfo, false))
|
||||||
|
globals.SugarLogger.Debugf("=========callResult := %s", utils.Format4Output(callResult, false))
|
||||||
if params.Block != "" {
|
if params.Block != "" {
|
||||||
redirectURL = fmt.Sprintf("%s?info=%s", params.Block, base64.StdEncoding.EncodeToString(utils.MustMarshal(callResult)))
|
redirectURL = fmt.Sprintf("%s?info=%s", params.Block, base64.StdEncoding.EncodeToString(utils.MustMarshal(callResult)))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user