保存
This commit is contained in:
@@ -47,7 +47,7 @@ public sealed class ConsistencyCheckService : IConsistencyCheckService
|
||||
result.Message = "相机未连接";
|
||||
result.Recommendations.Add("请先连接相机设备");
|
||||
_logger.LogWarning("相机未连接,跳过其他一致性检查");
|
||||
return Result.Success(result);
|
||||
return Result<ConsistencyCheckResult>.Success(result);
|
||||
}
|
||||
|
||||
// 检查YOLO初始化状态
|
||||
@@ -57,7 +57,7 @@ public sealed class ConsistencyCheckService : IConsistencyCheckService
|
||||
result.Message = "YOLO模型未初始化";
|
||||
result.Recommendations.Add("请先初始化YOLO模型");
|
||||
_logger.LogWarning("YOLO模型未初始化,跳过其他一致性检查");
|
||||
return Result.Success(result);
|
||||
return Result<ConsistencyCheckResult>.Success(result);
|
||||
}
|
||||
|
||||
// 获取相机配置信息
|
||||
@@ -67,7 +67,7 @@ public sealed class ConsistencyCheckService : IConsistencyCheckService
|
||||
result.Status = ConsistencyStatus.Error;
|
||||
result.Message = "无法获取相机设备信息";
|
||||
result.Recommendations.Add("检查相机连接状态");
|
||||
return Result.Success(result);
|
||||
return Result<ConsistencyCheckResult>.Success(result);
|
||||
}
|
||||
|
||||
// 获取YOLO模型信息
|
||||
@@ -120,7 +120,7 @@ public sealed class ConsistencyCheckService : IConsistencyCheckService
|
||||
}
|
||||
|
||||
_logger.LogInformation("一致性检查完成,状态: {Status}, 消息: {Message}", result.Status, result.Message);
|
||||
return Result.Success(result);
|
||||
return Result<ConsistencyCheckResult>.Success(result);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -182,7 +182,7 @@ public sealed class ConsistencyCheckService : IConsistencyCheckService
|
||||
healthResult.Summary = GenerateHealthSummary(healthResult);
|
||||
|
||||
_logger.LogDebug("健康检查完成,整体状态: {Status}", healthResult.OverallStatus);
|
||||
return Result.Success(healthResult);
|
||||
return Result<HealthCheckResult>.Success(healthResult);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user