diff --git a/server/auth/internal/logic/usergoogleloginlogic.go b/server/auth/internal/logic/usergoogleloginlogic.go index 440c84a2..51b55692 100644 --- a/server/auth/internal/logic/usergoogleloginlogic.go +++ b/server/auth/internal/logic/usergoogleloginlogic.go @@ -97,8 +97,8 @@ func (l *UserGoogleLoginLogic) UserGoogleLogin(req *types.RequestGoogleLogin, us CreateAt: time.Now().UTC(), Extend: map[string]interface{}{ "google_id": googleId, - "first_name": gresult.Get("family_name"), - "last_name": gresult.Get("given_name"), + "first_name": gresult.Get("family_name").String(), + "last_name": gresult.Get("given_name").String(), }, }