chenbo hace 4 años
padre
commit
03fa09ee6c
Se han modificado 2 ficheros con 4 adiciones y 8 borrados
  1. 3 6
      lib/common/weixin_public.class.php
  2. 1 2
      setting.inc.php

+ 3 - 6
lib/common/weixin_public.class.php

@@ -35,12 +35,9 @@ class weixin_public
     //获取code
     public function redirectWithCode()
     {
-//        $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".$this->appid
-//            ."&redirect_uri=".urlencode($this->uri)
-//            ."&response_type=code&scope=snsapi_userinfo&state=".time()."#wechat_redirect";
-
-        $url = 'test';
-        //header('Location: '.$url);
+        $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".$this->appid
+            ."&redirect_uri=".urlencode($this->uri)
+            ."&response_type=code&scope=snsapi_userinfo&state=".time()."#wechat_redirect";
 
         return $url;
     }

+ 1 - 2
setting.inc.php

@@ -56,8 +56,7 @@ $globalSexList = array(
 
 define('APPID', 'wxa6a88eafe691d79b');
 define('APPSECRET', 'ef2d5da2cd8ca534da1a81f940806146');
-//define('APPURI', 'http://fission.xazhima.com/front-page/fission-page.html');
-define('APPURI', 'aaaa');
+define('APPURI', 'http://fission.xazhima.com/front-page/fission-page.html');
 
 define('BASE_KEY_ACCESS_TOKEN', 'access_token');
 define('BASE_KEY_REFRESH_TOKEN', 'refresh_token');