From 2bb0cf7f0cbe91279673ef3b4a16429408ca0450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BC=9F?= <421281095@qq.com> Date: Fri, 8 Aug 2025 10:00:27 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:PPK=20=E6=96=87=E4=BB=B6=EF=BC=88.obs?= =?UTF-8?q?=E3=80=81.rtk=E3=80=81.mrk=E3=80=81.nav=EF=BC=89=E5=92=8C=20RTC?= =?UTF-8?q?M=20=E6=95=B0=E6=8D=AE=EF=BC=88.dat=20=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=EF=BC=89=E7=AD=89=E6=95=B0=E6=8D=AE=E8=AE=B0=E5=BD=95=E6=9C=AA?= =?UTF-8?q?=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs b/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs index b3c45b9..401e7f1 100644 --- a/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs +++ b/OpenAuth.App/ServiceApp/Subscribe/ConfigSubscribe.cs @@ -274,7 +274,9 @@ public class ConfigSubscribe : IJob int width = 0, height = 0, focalLength = 0; int offset = 0, length = 0; string model = ""; - var fileUrl ="http://" + _minioService.endPoint + "/" + _minioService._bucketName + "/" + objectKey; + if (objectKey.ToLower().EndsWith("jpeg")) + { + var fileUrl ="http://" + _minioService.endPoint + "/" + _minioService._bucketName + "/" + objectKey; using (var httpClient = new HttpClient()) { // 目前读取64KB @@ -384,6 +386,8 @@ public class ConfigSubscribe : IJob throw new Exception($"下载Range数据失败: {ex.Message}", ex); } } + } + /*string objectKey1 = data.file.object_key.ToString(); //缩略图处理 var imageStream = _minioService.GetObjectAsStream("", objectKey1);