|
@@ -36,7 +36,7 @@ class Login extends Controller{
|
|
|
$time = time() . rand(0,100);
|
|
|
$url = 'https://open.weixin.qq.com/connect/qrconnect';
|
|
|
$url = 'https://open.weixin.qq.com/connect/oauth2/authorize';
|
|
|
- $url .= '?appid='.$this->appId.'&redirect_uri='.$callback.'&response_type=code&scope=snsapi_login&state='.$time.'#wechat_redirect';
|
|
|
+ $url .= '?appid='.$this->appId.'&redirect_uri='.$callback.'&response_type=code&scope=snsapi_base&state='.$time.'#wechat_redirect';
|
|
|
|
|
|
|
|
|
|