Browse Source

修改bug

chenbo 4 years ago
parent
commit
3a4cd59333
1 changed files with 1 additions and 1 deletions
  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);