TaoLer/app/middleware/Install.php

17 lines
306 B
PHP
Raw Normal View History

2020-02-19 20:42:01 +08:00
<?php
namespace app\middleware;
use think\facade\Request;
class Install
{
public function handle($request, \Closure $next)
{
2021-07-22 13:04:54 +08:00
if(!file_exists('./install.lock')){
2020-02-19 20:42:01 +08:00
return redirect('/install/index');
//header('Location:'.Request::domain().'/install.php');
}
return $next($request);
}
}