mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
improve docker
This commit is contained in:
@@ -11,6 +11,7 @@ use Carbon\Carbon;
|
||||
use Illuminate\Console\Scheduling\Event;
|
||||
use Illuminate\Console\Scheduling\Schedule;
|
||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class Kernel extends ConsoleKernel
|
||||
{
|
||||
@@ -65,6 +66,9 @@ class Kernel extends ConsoleKernel
|
||||
|
||||
private function registerScheduleCleanup(Schedule $schedule): void
|
||||
{
|
||||
if (!Schema::hasTable("settings")) {
|
||||
return;
|
||||
}
|
||||
$interval = get_setting("main.autoclean_interval_one");
|
||||
if (!$interval || $interval < 60) {
|
||||
$interval = 7200;
|
||||
|
||||
Reference in New Issue
Block a user