From e3373bde659ecceb104a17ffd5199749b54dc5b8 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 18 Jul 2023 18:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/home-user-auth/etc/home-user-auth.yaml | 2 +- server/home-user-auth/internal/logic/usergoogleloginlogic.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/home-user-auth/etc/home-user-auth.yaml b/server/home-user-auth/etc/home-user-auth.yaml index beefa010..7b8747f2 100644 --- a/server/home-user-auth/etc/home-user-auth.yaml +++ b/server/home-user-auth/etc/home-user-auth.yaml @@ -10,7 +10,7 @@ Auth: OAuth: google: - appid: "1064842923358-e94msq2glj6qr4lrva9ts3q8h.apps.googleusercontent.com" + appid: "1064842923358-e94msq2glj6qr4lrva9ts3hqjjt53q8h.apps.googleusercontent.com" secret: "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" facebook: diff --git a/server/home-user-auth/internal/logic/usergoogleloginlogic.go b/server/home-user-auth/internal/logic/usergoogleloginlogic.go index 51d203dc..68205df8 100644 --- a/server/home-user-auth/internal/logic/usergoogleloginlogic.go +++ b/server/home-user-auth/internal/logic/usergoogleloginlogic.go @@ -59,6 +59,7 @@ func (l *UserGoogleLoginLogic) UserGoogleLogin(req *types.RequestGoogleLogin, us token, err := googleOauthConfig.Exchange(ctx, req.Code) if err != nil { + logx.Error(err) resp.SetStatus(basic.CodeApiErr) } ses := requests.NewSession()