Showing
1 changed file
with
1 additions
and
2 deletions
| @@ -7,9 +7,8 @@ class Common extends Controller | @@ -7,9 +7,8 @@ class Common extends Controller | ||
| 7 | protected $mod,$role,$system,$nav,$menudata,$cache_model,$categorys,$module,$moduleid,$adminRules,$HrefId; | 7 | protected $mod,$role,$system,$nav,$menudata,$cache_model,$categorys,$module,$moduleid,$adminRules,$HrefId; |
| 8 | public function initialize() | 8 | public function initialize() |
| 9 | { | 9 | { |
| 10 | - var_dump($_SESSION);die; | ||
| 11 | //判断管理员是否登录 | 10 | //判断管理员是否登录 |
| 12 | - if (!session('aid')) { | 11 | + if (1) { |
| 13 | $this->redirect('admin/login/index'); | 12 | $this->redirect('admin/login/index'); |
| 14 | } | 13 | } |
| 15 | define('MODULE_NAME',strtolower(request()->controller())); | 14 | define('MODULE_NAME',strtolower(request()->controller())); |
-
Please register or login to post a comment