From 5e4b6417a6dd6950e79007a34578a85205c78324 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Fri, 21 Mar 2025 18:15:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 2b2ac0e..e8e4bb1 100644 --- a/index.php +++ b/index.php @@ -83,7 +83,7 @@ error_reporting(E_ERROR); // 记录所有级别的错误 $uobj = new mUser(); $user_info = $uobj->getAdminUserByOpenid($_SESSION['openid']); - if(empty($user_info)){ + if(empty($user_info) || $user_info['status'] != 1) { header("Location: /login?url=".$_SERVER['REQUEST_URI']); exit(); }