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);