From d2a87836a1834059cd190ea89ec9200ec7f46cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BC=9F?= <421281095@qq.com> Date: Fri, 18 Jul 2025 16:05:41 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=AA=92=E4=BD=93=E5=9B=9E=E4=BC=A0?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9=202.=20=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E6=8B=8D=E7=85=A7=E6=A3=80=E7=B4=A2=EF=BC=88=E9=83=A8=E5=88=86?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/ServiceApp/ManageApp.cs | 15 +++++++++++++++ .../ServiceApp/Subscribe/ConfigSubscribe.cs | 8 ++++---- .../ServiceControllers/ManageController.cs | 12 +++++++++++- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/OpenAuth.App/ServiceApp/ManageApp.cs b/OpenAuth.App/ServiceApp/ManageApp.cs index 34dd33c..418a55c 100644 --- a/OpenAuth.App/ServiceApp/ManageApp.cs +++ b/OpenAuth.App/ServiceApp/ManageApp.cs @@ -1518,5 +1518,20 @@ namespace OpenAuth.App.ServiceApp return rootNodes; } + + public async Task> GetTaskPicList(string flightId, long timestamp) + { + var lasaMediaFile = await Repository.ChangeRepository>() + .AsQueryable() + .Where(r => r.FlightId == flightId) + .OrderBy(r => r.CreateTime) + //.Where(r => r.CreateTime > timestamp) + .SingleAsync(); + return new Response() + { + // todo objectKey 转换成链接 + Result = lasaMediaFile.ObjectKey + }; + } } } \ No newline at end of file diff --git a/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs b/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs index 1bc85da..37c2820 100644 --- a/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs +++ b/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs @@ -223,17 +223,17 @@ public class ConfigSubscribe : IJob var parents = new List(3); var parent1 = new LasaMediaFile() { - Id = Guid.NewGuid().ToString(), + Id = folderKey[0], FlightId = flightId, TaskId = taskId, - ParentKey = "", + ParentKey = "0", Name = folderKey[0], WorkspaceId = executeTask.WorkspaceId, }; parents.Add(parent1); parent1 = new LasaMediaFile() { - Id = Guid.NewGuid().ToString(), + Id = folderKey[1], FlightId = flightId, TaskId = taskId, ParentKey = folderKey[0], @@ -243,7 +243,7 @@ public class ConfigSubscribe : IJob parents.Add(parent1); parent1 = new LasaMediaFile() { - Id = Guid.NewGuid().ToString(), + Id = folderKey[2], FlightId = flightId, TaskId = taskId, ParentKey = folderKey[1], diff --git a/OpenAuth.WebApi/Controllers/ServiceControllers/ManageController.cs b/OpenAuth.WebApi/Controllers/ServiceControllers/ManageController.cs index 71b64a9..36f273c 100644 --- a/OpenAuth.WebApi/Controllers/ServiceControllers/ManageController.cs +++ b/OpenAuth.WebApi/Controllers/ServiceControllers/ManageController.cs @@ -249,7 +249,17 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers { return await _app.DeleteTask(id); } - + + /// + /// 根据flightId查询指令拍摄图片 + /// + /// + /// + /// + public async Task> GetTaskPicList(string flightId,long timestamp) + { + return await _app.GetTaskPicList(flightId,timestamp); + } #endregion #region 航线管理