code/system/system_manager.py
@@ -339,11 +339,13 @@ if report['components']: for component in report['components']: status = report['health']['components'].get(component, {'status': 'unknown'}) status_str = status['status'] status_str = status.get('status', 'unknown') if status_str == 'ok': status_str = '✅ 正常' elif status_str == 'error': status_str = f"❌ 错误: {status.get('message', '未知错误')}" elif status_str == 'disabled': status_str = '⏸️ 禁用' lines.append(f"- **{component}:** {status_str}\n") else: lines.append("无组件\n")