From 4f8deec6a351844fd0ce5c3fafb99c387f931537 Mon Sep 17 00:00:00 2001 From: win10 Date: Mon, 14 Sep 2020 15:47:11 +0800 Subject: [PATCH] 0 --- app/tools/controller/File.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/tools/controller/File.php b/app/tools/controller/File.php index 24ed4af9..02aba8df 100644 --- a/app/tools/controller/File.php +++ b/app/tools/controller/File.php @@ -22,19 +22,20 @@ class File extends BaseController { $this->middleware = [ 'online' - ,'login' + ,'terlogin' ]; + $this->luruTeacherId = session('teacher.userid'); + }else{ $this->middleware = [ 'online' ,'login' ,'auth' ]; + $this->luruTeacherId = session('admin.userid'); } - $this->luruTeacherId = session('user_id'); } - /** * 获取文件信息并保存 *