fix
This commit is contained in:
parent
71352cc5b9
commit
65ccfcb84e
|
@ -89,10 +89,11 @@ func (l *UserGoogleLoginLogic) UserGoogleLogin(req *types.RequestGoogleLogin, us
|
|||
logx.Error(err)
|
||||
return resp.SetStatus(basic.CodeOK)
|
||||
}
|
||||
|
||||
gemail := gresult.Get("email").String()
|
||||
l.registerInfo = &auth.RegisterToken{
|
||||
Password: base64.RawURLEncoding.EncodeToString(nonce),
|
||||
Platform: string(auth.PLATFORM_GOOGLE),
|
||||
Email: gemail,
|
||||
OperateType: auth.OpTypeRegister,
|
||||
TraceId: uuid.NewString(),
|
||||
CreateAt: time.Now().UTC(),
|
||||
|
@ -110,7 +111,7 @@ func (l *UserGoogleLoginLogic) UserGoogleLogin(req *types.RequestGoogleLogin, us
|
|||
return resp.SetStatus(basic.CodeOAuthRegisterTokenErr)
|
||||
}
|
||||
l.registerToken = token
|
||||
l.defaultEmail = gresult.Get("email").String()
|
||||
l.defaultEmail = gemail
|
||||
|
||||
return resp.SetStatus(basic.CodeOK)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user