소스 검색

修改bug

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

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

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