TaoLer/app/middleware/Install.php
2020-02-19 20:42:01 +08:00

17 lines
307 B
PHP

<?php
namespace app\middleware;
use think\facade\Request;
class Install
{
public function handle($request, \Closure $next)
{
if(!file_exists('../install.lock')){
return redirect('/install/index');
//header('Location:'.Request::domain().'/install.php');
}
return $next($request);
}
}