From b928ebbd2e0d298843682929077d1dc241d185cd Mon Sep 17 00:00:00 2001 From: wispx <1591788658@qq.com> Date: Wed, 5 Dec 2018 18:06:26 +0800 Subject: [PATCH] fix --- application/index/controller/Install.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/application/index/controller/Install.php b/application/index/controller/Install.php index 2eb756b8..79f47f9d 100644 --- a/application/index/controller/Install.php +++ b/application/index/controller/Install.php @@ -168,13 +168,10 @@ EOT; { try { $user = false; - if (Session::has('uid') && Session::has('token')) { - $user = Users::get([ - 'id' => Session::get('uid'), - 'token' => Session::get('token') - ]); + if (Session::has('uid')) { + $user = Users::get(Session::get('uid')); if (!$user) { - Session::delete(['uid', 'token']); + Session::delete('uid'); } }