diff --git a/app/admin/view/public/jumptpl.html b/app/admin/view/public/jumptpl.html index 7636460..6380d5e 100644 --- a/app/admin/view/public/jumptpl.html +++ b/app/admin/view/public/jumptpl.html @@ -44,30 +44,27 @@ body{font-family: '微软雅黑',serif; color: #CCC; font-size: 16px;background: - diff --git a/app/index/middleware/system/IndexPermissions.php b/app/index/middleware/system/IndexPermissions.php index 934b096..4a0c723 100644 --- a/app/index/middleware/system/IndexPermissions.php +++ b/app/index/middleware/system/IndexPermissions.php @@ -11,7 +11,7 @@ use Webman\Http\Response; use Webman\Http\Request; /** - * 管理员权限 + * 前端权限 * @package app\admin\middleware\system * @author meystack < */ @@ -64,7 +64,7 @@ class IndexPermissions implements MiddlewareInterface // 是否验证登录器 $userInfo = UserTokenService::isLogin(); - if (!empty($userInfo)) { + if (!empty($userInfo) && isset($userInfo['id'])) { if (in_array($action, $this->repeatLogin)) { return redirect($this->JumpUrl); }