媒体库查询添加字段

main
陈伟 1 month ago
parent 2bb0cf7f0c
commit 862544669d

@ -125,15 +125,15 @@ public class ConfigSubscribe : IJob
result = 0,
output = new
{
bucket = "test",
endpoint = "http://175.27.168.120:6013",
bucket = _minioService._bucketName,
endpoint = $"http://{_minioService.endPoint}",
object_key_prefix = Guid.NewGuid().ToString(), // todo 是否设计任务id
provider = "minio",
region = "linyi",
credentials = new
{
access_key_id = "minioadmin",
access_key_secret = "minioadmin",
access_key_id = $"{_minioService.AccessKey}",
access_key_secret = $"{_minioService.SecretKey}",
expire = 3600,
security_token = ""
}
@ -269,7 +269,7 @@ public class ConfigSubscribe : IJob
.Where(a => a.ObjectKey.Equals(objectKey)).SingleAsync();
if (mediaFile == null)
{
string suoluokey = "minipic/" + data.file.name.ToString();
string suoluokey = "";
long? picSize = 0;
int width = 0, height = 0, focalLength = 0;
int offset = 0, length = 0;
@ -279,6 +279,7 @@ public class ConfigSubscribe : IJob
var fileUrl ="http://" + _minioService.endPoint + "/" + _minioService._bucketName + "/" + objectKey;
using (var httpClient = new HttpClient())
{
suoluokey = "minipic/" + data.file.name.ToString();
// 目前读取64KB
// 添加Range请求头
httpClient.DefaultRequestHeaders.Range =

Loading…
Cancel
Save