소스 검색

测试代码

chenbo 5 년 전
부모
커밋
bdf53bbe3d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/common/weixin_public.class.php

+ 1 - 1
lib/common/weixin_public.class.php

@@ -36,7 +36,7 @@ class weixin_public
     public function redirectWithCode()
     {
         $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".$this->appid
-            ."&redirect_uri=".$this->uri
+            ."&redirect_uri=".urlencode($this->uri)
             ."&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
 
         //header('Location: '.$url);