diff --git a/app/Filament/Widgets/TerminalStatsWidget.php b/app/Filament/Widgets/TerminalStatsWidget.php index 59e218f..7c3d1c3 100644 --- a/app/Filament/Widgets/TerminalStatsWidget.php +++ b/app/Filament/Widgets/TerminalStatsWidget.php @@ -17,7 +17,7 @@ class TerminalStatsWidget extends BaseWidget { // 统计终端数据 $totalTerminals = Terminal::count(); - $activeTerminals = Terminal::where('is_active', true)->count(); + $onlineTerminals = Terminal::where('is_online', true)->count(); // 统计知识库关联 $totalKnowledgeBases = TerminalKnowledgeBase::count(); @@ -36,7 +36,7 @@ class TerminalStatsWidget extends BaseWidget return [ Stat::make('终端总数', $totalTerminals) - ->description("{$activeTerminals} 个激活") + ->description("{$onlineTerminals} 个在线") ->descriptionIcon('heroicon-m-computer-desktop') ->color('primary') ->url(route('filament.admin.resources.terminals.index')),