diff --git a/index.php b/index.php index c9af3f6..e03928c 100644 --- a/index.php +++ b/index.php @@ -79,6 +79,12 @@ $needlogin = false; } + if($_POST['str'] == FREE_LOGIN_STR){ + $needlogin = false; + + if($this->control_name !== 'weibo' || $this->control_func == 'home') $this->ajax_json(false, '暂无权限'); + } + if ($needlogin) { if(empty($_SESSION['openid']) && empty($_SESSION['token'])) { header("Location: /login?url=".$_SERVER['REQUEST_URI']);