diff --git a/app/admin/middleware/CheckAuth.php b/app/admin/middleware/CheckAuth.php index 3cc59c0..36546f9 100644 --- a/app/admin/middleware/CheckAuth.php +++ b/app/admin/middleware/CheckAuth.php @@ -4,6 +4,7 @@ namespace app\admin\middleware; use app\common\service\AuthService; use app\common\traits\JumpTrait; +use app\Request; use Closure; use think\db\exception\DataNotFoundException; use think\db\exception\DbException; @@ -18,7 +19,7 @@ class CheckAuth * @throws DbException * @throws DataNotFoundException */ - public function handle($request, Closure $next) + public function handle(Request $request, Closure $next) { $adminUserInfo = $request->adminUserInfo; if (empty($adminUserInfo)) return $next($request); diff --git a/app/admin/middleware/CheckInstall.php b/app/admin/middleware/CheckInstall.php index 69655a6..717b072 100644 --- a/app/admin/middleware/CheckInstall.php +++ b/app/admin/middleware/CheckInstall.php @@ -3,13 +3,14 @@ namespace app\admin\middleware; use app\common\traits\JumpTrait; +use app\Request; use Closure; class CheckInstall { use JumpTrait; - public function handle($request, Closure $next) + public function handle(Request $request, Closure $next) { $controller = $request->controller(); if (!is_file(root_path() . 'config' . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'lock' . DIRECTORY_SEPARATOR . 'install.lock')) { diff --git a/app/admin/middleware/CheckLogin.php b/app/admin/middleware/CheckLogin.php index cdbdbb8..4d54a71 100644 --- a/app/admin/middleware/CheckLogin.php +++ b/app/admin/middleware/CheckLogin.php @@ -3,6 +3,7 @@ namespace app\admin\middleware; use app\common\traits\JumpTrait; +use app\Request; use Closure; use ReflectionClass; use ReflectionException; @@ -14,7 +15,7 @@ class CheckLogin /** * @throws ReflectionException */ - public function handle($request, Closure $next) + public function handle(Request $request, Closure $next) { $controller = $request->controller(); if (empty($controller)) return $next($request); diff --git a/app/admin/middleware/SystemLog.php b/app/admin/middleware/SystemLog.php index 183fbd1..91b07fe 100644 --- a/app/admin/middleware/SystemLog.php +++ b/app/admin/middleware/SystemLog.php @@ -6,6 +6,7 @@ use app\admin\service\annotation\ControllerAnnotation; use app\admin\service\annotation\NodeAnnotation; use app\admin\service\SystemLogService; use app\common\traits\JumpTrait; +use app\Request; use Closure; use Doctrine\Common\Annotations\AnnotationReader; use Doctrine\Common\Annotations\DocParser; @@ -25,7 +26,7 @@ class SystemLog 'mobile', ]; - public function handle($request, Closure $next) + public function handle(Request $request, Closure $next) { $params = $request->param(); if (isset($params['s'])) unset($params['s']);