diff --git a/server/auth/internal/logic/usergoogleloginlogic.go b/server/auth/internal/logic/usergoogleloginlogic.go index 4a17d4ef..02cf6658 100644 --- a/server/auth/internal/logic/usergoogleloginlogic.go +++ b/server/auth/internal/logic/usergoogleloginlogic.go @@ -7,7 +7,6 @@ import ( "fusenapi/utils/auth" "fusenapi/utils/basic" "io" - "log" "net/http" "time" @@ -73,7 +72,7 @@ func (l *UserGoogleLoginLogic) UserGoogleLogin(req *types.RequestGoogleLogin, us return resp.SetStatus(basic.CodeOAuthGoogleApiErr, err.Error()) } - log.Println(r.Json()) + logx.Error(r.Json()) googleId := r.Json().Get("id").Int() user, err := l.svcCtx.AllModels.FsUser.FindUserByGoogleId(context.TODO(), googleId) @@ -96,7 +95,9 @@ func (l *UserGoogleLoginLogic) UserGoogleLogin(req *types.RequestGoogleLogin, us TraceId: uuid.NewString(), CreateAt: time.Now().UTC(), Extend: map[string]interface{}{ - "google_id": googleId, + "google_id": googleId, + "first_name": "", + "last_name": "", }, }