|
@@ -20,10 +20,10 @@ class AdminBase extends BaseController
|
|
public function initialize()
|
|
public function initialize()
|
|
{
|
|
{
|
|
parent::initialize();
|
|
parent::initialize();
|
|
- // 判断是否登录
|
|
|
|
- if (!$this->isLogin()) {
|
|
|
|
- return $this->redirect(url('login/index'), 302);
|
|
|
|
- }
|
|
|
|
|
|
+ // 判断是否登录 判断是否登陆 切换到 中间件Auth中
|
|
|
|
+// if (!$this->isLogin()) {
|
|
|
|
+// return $this->redirect(url('login/index'), 302);
|
|
|
|
+// }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|