2021-02-23 13:52:07 +08:00

16 lines
352 B
PHP

<?php
declare (strict_types = 1);
namespace app\admin\middleware;
class Install
{
public function handle($request, \Closure $next)
{
if (!is_installed()) {
return $request->isAjax()?vae_assign(202,'请先完成系统安装引导'):redirect((string)url('/install/index'));
}
return $next($request);
}
}