chenbo %!s(int64=4) %!d(string=hai) anos
pai
achega
3a4cd59333
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);