画廊页面

This commit is contained in:
Wisp X 2022-02-22 15:31:23 +08:00
parent 09600cf561
commit aa122a394d
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,6 @@ namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
class Install extends Command
{

View File

@ -14,7 +14,11 @@ class CheckIsInstalled
{
// 检测程序是否安装
if (! file_exists(base_path('installed.lock'))) {
return redirect('install');
if (! $request->expectsJson()) {
return redirect('install');
} else {
return $this->error('It has already been installed.');
}
}
return $next($request);