语法提示

This commit is contained in:
iVampireSP.com 2023-03-08 08:56:04 +08:00
parent d14318e6c7
commit dfd016e77b
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -20,6 +20,8 @@ public function handle(): void
{
// 扫描出错的主机
(new Host)->whereIn('status', ['error', 'pending', 'unavailable'])->with('module')->chunk(100, function ($hosts) {
/* @var Host $host */
foreach ($hosts as $host) {
// 忽略维护中的模块
if ($host->module->status !== 'up') {