dever 7 years ago
parent
commit
ae0d27e463
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tm/lib/Controller/Login.class.php

+ 1 - 1
tm/lib/Controller/Login.class.php

@@ -36,7 +36,7 @@ class Login extends Controller{
         $time = time() . rand(0,100);
         $time = time() . rand(0,100);
         $url = 'https://open.weixin.qq.com/connect/qrconnect';
         $url = 'https://open.weixin.qq.com/connect/qrconnect';
         $url = 'https://open.weixin.qq.com/connect/oauth2/authorize';
         $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';
         
         
         //echo $url;die;
         //echo $url;die;
         //self::redirect($url);
         //self::redirect($url);