diff --git a/app/Jobs/Module/FetchModule.php b/app/Jobs/Module/FetchModule.php index 6ecd60d..55c0766 100644 --- a/app/Jobs/Module/FetchModule.php +++ b/app/Jobs/Module/FetchModule.php @@ -45,7 +45,7 @@ public function handle() // } // - Module::where('status', '!=', 'maintenance')->whereNotNull('url')->chunk(100, function ($modules) { + Module::whereNotNull('url')->chunk(100, function ($modules) { $servers = []; foreach ($modules as $module) { @@ -60,8 +60,8 @@ public function handle() if ($response->successful()) { - // 如果模块状态为 down,则更新为 up - if ($module->status === 'down') { + // 如果模块状态不为 up,则更新为 up + if ($module->status !== 'up') { $module->status = 'up'; }