|
@@ -40,7 +40,7 @@ class wxauthor
|
|
|
'redirect_uri' => $back_url,
|
|
|
'response_type' => 'code',
|
|
|
'scope' => 'snsapi_userinfo',
|
|
|
- 'state' => $_SESSION['MPHPSESSID']];
|
|
|
+ 'state' => urlencode(BASE_SITE_URL)];
|
|
|
$ref_url = util::http_add_params(self::authorize_url,$params);
|
|
|
$ref_url .= '#wechat_redirect';
|
|
|
$_SESSION['author_orgin_url'] = $origin_url;
|