♻️ 重构部分代码,打印调试信息

This commit is contained in:
naiba
2021-04-20 19:30:34 +08:00
parent d3c3e55c88
commit 6286e34af0
7 changed files with 70 additions and 38 deletions

View File

@@ -4,7 +4,6 @@ import (
"context"
"errors"
"fmt"
"log"
"net/http"
"strings"
@@ -71,7 +70,6 @@ func (oa *oauth2controller) callback(c *gin.Context) {
if err == nil {
gu, _, err = client.Users.Get(ctx, "")
}
log.Printf("%+v", gu)
if err != nil {
mygin.ShowErrorPage(c, mygin.ErrInfo{
Code: http.StatusBadRequest,