fix: 报告表格去掉空列
This commit is contained in:
parent
2d1243f729
commit
481c91fc28
@ -33,13 +33,13 @@ namespace CounterDrone.Core.Services
|
||||
// === 一、环境与目标 ===
|
||||
sb.AppendLine("## 一、环境与目标");
|
||||
sb.AppendLine();
|
||||
sb.AppendLine($"| 环境 | 值 | | 目标 | 值 |");
|
||||
sb.AppendLine($"|------|-----|---|------|-----|");
|
||||
sb.AppendLine($"| 天气 | {TranslateWeather((WeatherType)scene.WeatherType)} | | 类型 | {TranslateTarget((TargetType)(target?.TargetType ?? 0))} |");
|
||||
sb.AppendLine($"| 风速 | {scene.WindSpeed} m/s | | 数量 | {config.Targets.Sum(t => t.Quantity)} 架 |");
|
||||
sb.AppendLine($"| 风向 | {scene.WindDirection} | | 速度 | {target?.TypicalSpeed ?? 0} km/h |");
|
||||
sb.AppendLine($"| 温度 | {scene.Temperature}°C | | 高度 | {target?.TypicalAltitude ?? 0} m |");
|
||||
sb.AppendLine($"| 能见度 | {scene.Visibility} m | | 动力 | {TranslatePower((PowerType)(target?.PowerType ?? 0))} |");
|
||||
sb.AppendLine($"| 环境 | 值 | 目标 | 值 |");
|
||||
sb.AppendLine($"|------|-----|------|-----|");
|
||||
sb.AppendLine($"| 天气 | {TranslateWeather((WeatherType)scene.WeatherType)} | 类型 | {TranslateTarget((TargetType)(target?.TargetType ?? 0))} |");
|
||||
sb.AppendLine($"| 风速 | {scene.WindSpeed} m/s | 数量 | {config.Targets.Sum(t => t.Quantity)} 架 |");
|
||||
sb.AppendLine($"| 风向 | {scene.WindDirection} | 速度 | {target?.TypicalSpeed ?? 0} km/h |");
|
||||
sb.AppendLine($"| 温度 | {scene.Temperature}°C | 高度 | {target?.TypicalAltitude ?? 0} m |");
|
||||
sb.AppendLine($"| 能见度 | {scene.Visibility} m | 动力 | {TranslatePower((PowerType)(target?.PowerType ?? 0))} |");
|
||||
sb.AppendLine();
|
||||
|
||||
// === 二、我方部署 ===
|
||||
|
||||
Loading…
Reference in New Issue
Block a user