From ccc25c5718c22acc33e2a3b901249b07219d4814 Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Fri, 6 Sep 2024 09:57:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E4=B8=8B=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/control/index.php b/control/index.php index 804d8a1..80b5da0 100644 --- a/control/index.php +++ b/control/index.php @@ -217,6 +217,9 @@ class index extends publicBase { if (empty($uid) || empty($token)) $this->ajax_json(false, '未登录或登录已经失效', array('code' => CODE_LOGIN_EXIPRE)); $obj = new mUser(); + $is_login = $obj->validateToken($uid, $token); + if (!$is_login) $this->ajax_json(false, '请登录后操作'); + $uinfo = $obj->getUserByUid($uid); if (empty($uinfo)) $this->ajax_json(false, '未登录或登录已经失效', array('code' => CODE_LOGIN_EXIPRE));