".$iNodeCount."个可用节点,最高速度".$iNodeSpeed."M/S。 覆盖".$sNodeZone."等多个区域。"; return $sContent; } public static function nodeCount(): int { if (Pipeline::enabled()) { $store = Pipeline::store(); return $store->locked(function () use ($store): int { $release = $store->current(); if (!$release || ($release['validated'] ?? false) !== true || ($release['date'] ?? '') !== date('Y-m-d') || time() - ($release['created_at'] ?? 0) > 86400) { throw new RuntimeException('no_today_published_release_for_article'); } $count = $release['counts']['v2ray'] ?? null; if (!is_int($count) || $count < 1) { throw new RuntimeException('invalid_published_node_count'); } return $count; }, false); } $pool = FreenodePool::whereDate('date', date('Y-m-d'))->first(); $content = json_decode($pool->content ?? '[]', true); return count($content['v2ray'] ?? []); } }