Bladeren bron

测试代码

chenbo 4 jaren geleden
bovenliggende
commit
19ddd45c40
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 4 3
      lib/common/weixin_public.class.php

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

@@ -35,10 +35,11 @@ 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 = "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);
 
         return $url;