@@ -143,7 +143,7 @@ class Controller extends \think\Controller
if (in_array($this->routeUri, $this->allowAllAction)) {
return true;
}
- var_dump($this->store);
+
// 验证登录状态
if (empty($this->store)
|| (int)$this->store['is_login'] !== 1
@@ -124,7 +124,8 @@ class Auth
private function checkAccess($url)
{
// 超级管理员无需验证
- if ($this->user['is_super']) {
+ $isSupper = isset($this->user['is_super'])? $this->user['is_super'] : false;
+ if ($isSupper) {
// 验证当前请求是否在白名单