测试通过
This commit is contained in:
parent
c13225d2fa
commit
e3373bde65
|
@ -10,7 +10,7 @@ Auth:
|
||||||
|
|
||||||
OAuth:
|
OAuth:
|
||||||
google:
|
google:
|
||||||
appid: "1064842923358-e94msq2glj6qr4lrva9ts3q8h.apps.googleusercontent.com"
|
appid: "1064842923358-e94msq2glj6qr4lrva9ts3hqjjt53q8h.apps.googleusercontent.com"
|
||||||
secret: "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"
|
secret: "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"
|
||||||
|
|
||||||
facebook:
|
facebook:
|
||||||
|
|
|
@ -59,6 +59,7 @@ func (l *UserGoogleLoginLogic) UserGoogleLogin(req *types.RequestGoogleLogin, us
|
||||||
|
|
||||||
token, err := googleOauthConfig.Exchange(ctx, req.Code)
|
token, err := googleOauthConfig.Exchange(ctx, req.Code)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
logx.Error(err)
|
||||||
resp.SetStatus(basic.CodeApiErr)
|
resp.SetStatus(basic.CodeApiErr)
|
||||||
}
|
}
|
||||||
ses := requests.NewSession()
|
ses := requests.NewSession()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user