mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
19 lines
333 B
PHP
19 lines
333 B
PHP
<?php
|
|
|
|
namespace controller;
|
|
|
|
use think\Controller;
|
|
|
|
class BasicAdmin extends Controller {
|
|
|
|
public function _initialize() {
|
|
parent::_initialize();
|
|
if (!$this->isLogin()) {
|
|
$this->redirect('@admin/login');
|
|
}
|
|
}
|
|
|
|
public function isLogin() {
|
|
return false;
|
|
}
|
|
} |