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

!31 开放登录线上测试6

* Merge branch 'demo' of gitee.com:koogua/course-tencent-cloud into xiao…
* 初步完成开放登录,待线上测试6
* 初步完成开放登录,待线上测试5
* 初步完成开放登录,待线上测试4
* 初步完成开放登录,待线上测试3
* 初步完成开放登录,待线上测试2
This commit is contained in:
koogua 2020-12-05 21:53:12 +08:00
parent 7399fcbb93
commit a4a9936054
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(),
'scope' => 'snsapi_login',
'response_type' => 'code', 'response_type' => 'code',
'scope' => 'snsapi_userinfo',
]; ];
return self::AUTHORIZE_URL . '?' . http_build_query($params); return self::AUTHORIZE_URL . '?' . http_build_query($params);