'#198754', 'good' => '#2563eb', 'fair' => '#e68a00', 'poor' => '#dc3545', ); $ring_color = isset($grade_colors[$grade]) ? $grade_colors[$grade] : '#2563eb'; // SVG 环计算 $circumference = 2 * 3.1415926 * 70; // ≈ 439.82 $offset = $circumference * (1 - $score / 100); // 检测时间格式化 $checked_at = date('Y-m-d H:i:s', $result['checked_at']); ?>
0
'config', 'title' => lang('admin_health_config'), 'icon' => 'ti-settings'), array('key' => 'performance', 'title' => lang('admin_health_performance'), 'icon' => 'ti-activity'), array('key' => 'database', 'title' => lang('admin_health_database'), 'icon' => 'ti-database'), array('key' => 'environment', 'title' => lang('admin_health_environment'), 'icon' => 'ti-server'), array('key' => 'security', 'title' => lang('admin_health_security'), 'icon' => 'ti-shield-lock'), array('key' => 'third_party', 'title' => lang('admin_health_third_party'), 'icon' => 'ti-plug'), ); $status_icons = array( 'pass' => '', 'warn' => '', 'fail' => '', 'skip' => '', 'info' => '', ); ?>
/