1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-29 22:01:38 +08:00

初步完成开放登录,待线上测试6

This commit is contained in:
xiaochong0302 2020-12-05 21:49:02 +08:00
parent e232160d22
commit 4fa02f34bb
2 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ class QQ extends OAuth
'client_id' => $this->clientId, 'client_id' => $this->clientId,
'redirect_uri' => $this->redirectUri, 'redirect_uri' => $this->redirectUri,
'state' => $this->getState(), 'state' => $this->getState(),
'response_type' => 'code',
'scope' => 'get_user_info', 'scope' => 'get_user_info',
'response_type' => 'code',
]; ];
return self::AUTHORIZE_URL . '?' . http_build_query($params); return self::AUTHORIZE_URL . '?' . http_build_query($params);

View File

@ -17,8 +17,8 @@ class WeiXin extends OAuth
'appid' => $this->clientId, 'appid' => $this->clientId,
'redirect_uri' => $this->redirectUri, 'redirect_uri' => $this->redirectUri,
'state' => $this->getState(), 'state' => $this->getState(),
'response_type' => 'code',
'scope' => 'snsapi_login', 'scope' => 'snsapi_login',
'response_type' => 'code',
]; ];
return self::AUTHORIZE_URL . '?' . http_build_query($params); return self::AUTHORIZE_URL . '?' . http_build_query($params);