From d6c77f343067291c746d92ba3d31e7cb2db05ad0 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Mon, 21 Apr 2025 11:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=A6=99=E6=8B=9B=E5=BC=80=E6=94=BE?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 6 ++++++ 1 file changed, 6 insertions(+) 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']);