From 550b032f7e33bc945f7c8f9515cafa85466b8b9a Mon Sep 17 00:00:00 2001 From: win10 Date: Mon, 14 Sep 2020 15:50:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/tools/controller/File.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/tools/controller/File.php b/app/tools/controller/File.php index 02aba8df..8a048e0c 100644 --- a/app/tools/controller/File.php +++ b/app/tools/controller/File.php @@ -22,18 +22,16 @@ class File extends BaseController { $this->middleware = [ 'online' - ,'terlogin' + ,'login' ]; - $this->luruTeacherId = session('teacher.userid'); - }else{ $this->middleware = [ 'online' ,'login' ,'auth' ]; - $this->luruTeacherId = session('admin.userid'); } + $this->luruTeacherId = session('user_id'); } /**