diff --git a/handler/tool.go b/handler/tool.go index 5b7cc04..7599672 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -892,7 +892,7 @@ func handleThirdPartyCallback(c *gin.Context) { log.Println("state is empty,stateID=", stateID) } else { //json解析 - log.Println("stateStr:", stateStr, "\tcode:", code) + //log.Println("stateStr:", stateStr, "\tcode:", code) var state proto.ThirdPartyLoginState err := json.Unmarshal([]byte(stateStr), &state) log.Println("handle callback state:", stateStr, "\tcode:", code) diff --git a/worker/thirdParty.go b/worker/thirdParty.go index 8971bc5..5ecb0e4 100644 --- a/worker/thirdParty.go +++ b/worker/thirdParty.go @@ -595,6 +595,7 @@ func GetMicroSoftAccessTokenByCode(code string, redirectURI string, clientID str log.Println("microsoft response err:", err2) return resp, err2 } + log.Println("microsoft response content:", string(respBytes)) err = json.Unmarshal(respBytes, &resp) if err != nil { log.Println("microsoft response decode err:", err, " response content:", string(respBytes))