添加google第三方登录,修改中继请求post模式选择

This commit is contained in:
junleea 2025-04-30 16:19:13 +08:00
parent d6a1517689
commit 4309a5faea
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ func DoThirdPartyCallBack(state *proto.ThirdPartyLoginState, code string) {
func DoGoogleCallBack(state *proto.ThirdPartyLoginState, code string) { func DoGoogleCallBack(state *proto.ThirdPartyLoginState, code string) {
//根据code获取Access Token //根据code获取Access Token
tokenResp, err := worker.GetGoogleAccessTokenByCode(code, "https://pm.ljsea.top/tool/google_callback", worker.GoogleClientID, worker.GoogleClientSecret) tokenResp, err := worker.GetGoogleAccessTokenByCode(code, "https://pm.ljsea.top/tool/third_party_callback", worker.GoogleClientID, worker.GoogleClientSecret)
if tokenResp.AccessToken == "" { if tokenResp.AccessToken == "" {
log.Println("get google access token is empty") log.Println("get google access token is empty")