From 38a1cddc29793611ce9b7f8024b45fac8ecf4a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BC=9F?= <421281095@qq.com> Date: Thu, 21 Aug 2025 15:12:37 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E6=8C=87=E4=BB=A4=E6=8B=8D=E7=85=A7?= =?UTF-8?q?=E5=AA=92=E4=BD=93=E5=9B=BE=E7=89=87=E5=85=B3=E7=B3=BB=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E6=AD=A3=E7=A1=AE=E7=9A=84=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs b/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs index 2487740..9b28248 100644 --- a/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs +++ b/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs @@ -242,6 +242,11 @@ public class ConfigSubscribe : IJob string objectKey = data.file.object_key; var folderKey = ((string)data.file.object_key).Split("/"); var parentKey = folderKey[2]; + if (flightType.Equals(1)) + { + parentKey = flightId; + } + var isExist = await _sqlSugarClient .Queryable() .Where(x => x.Id.Equals(parentKey)).CountAsync(); @@ -298,7 +303,7 @@ public class ConfigSubscribe : IJob int width = 0, height = 0, focalLength = 0; int offset = 0, length = 0; string model = ""; - float? gimbalRoll= 0, gimbalPitch=0; + float? gimbalRoll = 0, gimbalPitch = 0; float? digitalZoomRatio = 1; var fileUrl = "http://" + _minioService.endPoint + "/" + _minioService._bucketName + "/" + objectKey; @@ -355,7 +360,6 @@ public class ConfigSubscribe : IJob { if (directory is ExifDirectoryBase) { - if (directory.Name.Equals("Exif IFD0")) { foreach (var tag in directory.Tags) @@ -376,6 +380,7 @@ public class ConfigSubscribe : IJob { digitalZoomRatio = float.Parse(tag.Description); } + if (tag.Name.Equals("Exif Image Width")) { width = int.Parse(tag.Description.Replace("pixels", "") @@ -466,7 +471,7 @@ public class ConfigSubscribe : IJob Path = data.file.path, // 目前这个好像没有值 CreateTime = createTime, WorkspaceId = workspaceId, - ParentKey = folderKey[2], + ParentKey = parentKey, Tid = result.tid, Bid = result.bid, FlightType = flightType,