ips as $ip) { $ret = ['ip' => $ip, 'icmp' => 4, 'tcp' => 4, 'nodeId' => $this->nodeId]; try { $status = NetworkDetection::networkStatus($ip, $this->port ?? 22); $ret['icmp'] = $status['icmp']; $ret['tcp'] = $status['tcp']; } catch (Exception $e) { Log::error("节点 [{$this->nodeId}] IP [$ip] 检测失败: ".$e->getMessage()); } broadcast(new NodeActions('check', $ret, $this->controllerNodeId)); } } }