From 96f95b9480a8f0e53d0118fd975e92cdecba6321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=AD=E6=99=93=E8=80=BF?= Date: Mon, 8 Feb 2021 13:18:50 +0800 Subject: [PATCH] 1 --- application/admin/controller/ApiCommon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/controller/ApiCommon.php b/application/admin/controller/ApiCommon.php index fc1fded..15b1ed6 100644 --- a/application/admin/controller/ApiCommon.php +++ b/application/admin/controller/ApiCommon.php @@ -29,7 +29,7 @@ class ApiCommon extends Common $cache = cache('Auth_'.$authKey.$platform); // 校验sessionid和authKey - if (empty($sessionId) || empty($authKey) || empty($cache) || ($cache['sessionId'] !== $sessionId)) { + if (empty($sessionId) || empty($authKey) || empty($cache)) { header('Content-Type:application/json; charset=utf-8'); $dataTime=date('H:i',time()); exit(json_encode(['code' => 302, 'data' => ['extra' => 1, 'extraTime' => $dataTime], 'msg' => '请先登录!']));