1. 添加部分测试方法

2. 航线文件下发部分参数填充
feature-flyModify
陈伟 2025-06-17 10:23:26 +08:00
parent 7e0d0003e8
commit a5f85ade3f
2 changed files with 15 additions and 3 deletions

View File

@ -526,7 +526,7 @@ namespace OpenAuth.App.ServiceApp
var airLine = await Repository.ChangeRepository<SugarRepositiry<LasaAirLine>>()
.GetByIdAsync(task.AirLineId);
var wpml = airLine.WPML;
// todo 查询sn
// 查询机场sn
var dronePort = await Repository.ChangeRepository<SugarRepositiry<LasaDronePort>>()
.GetByIdAsync(airLine.UavId);
if (dronePort == null)
@ -564,8 +564,8 @@ namespace OpenAuth.App.ServiceApp
task_type = task.TaskType,
file = new
{
url = wpml, // todo 拼接地址
fingerprint = "" // todo 计算md5
url = wpml,
fingerprint = _minioService.GetMetaObject(wpml, "") // todo 计算md5
},
// 任务就绪条件 可选字段。条件任务(即 task_type 为2时必填其他类型任务会忽略该字段。下发条件任务后设备会定频检查 ready_conditions 是否全部满足,若全部满足则会有 flighttask_ready 事件通知。且设备端接收 flighttask_execute 指令时,也会检查任务的 ready_conditions 是否已全部满足。
ready_conditions = new
@ -658,5 +658,10 @@ namespace OpenAuth.App.ServiceApp
{
return _minioService.UploadFile(xmlFile, "");
}
public async Task<string> GetMd5Meta(string objectname)
{
return await _minioService.GetMetaObject(objectname, "test");
}
}
}

View File

@ -470,5 +470,12 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
var dir = configuration["WpmlDir"];
return dir;
}
[HttpGet]
[AllowAnonymous]
public Task<string> TestGetMd5Meta(string objectname)
{
return _app.GetMd5Meta(objectname);
}
}
}