bugfix: 毫秒转换时间错误

main
陈伟 2 months ago
parent fb777b7820
commit 65f4e34fc6

@ -1530,7 +1530,7 @@ namespace OpenAuth.App.ServiceApp
.Where(r => r.FlightId == flightId)
.Where(r => r.ObjectKey.Contains("/Remote-Control"))
.Where(r => r.ObjectKey.Contains(".jpeg"))
.Where(r => r.CreateTime > DateTimeOffset.FromUnixTimeMilliseconds(timestamp))
.Where(r => r.CreateTime > DateTimeOffset.FromUnixTimeMilliseconds(timestamp).ToLocalTime())
.SingleAsync();
if (lasaMediaFile == null)
{
@ -1547,6 +1547,7 @@ namespace OpenAuth.App.ServiceApp
{
Directory.CreateDirectory(tempPath);
}
await _minioService
.DownLoadObject(_minioService._bucketName, lasaMediaFile.ObjectKey, tempPath, "");
var picPath = Path.Combine(tempPath, lasaMediaFile.ObjectKey);
@ -1585,7 +1586,7 @@ namespace OpenAuth.App.ServiceApp
.Where(r => r.FlightId == flightId)
.Where(r => r.ObjectKey.Contains("/Remote-Control"))
.Where(r => r.ObjectKey.Contains("S.mp4"))
.Where(r => r.CreateTime > DateTimeOffset.FromUnixTimeMilliseconds(timestamp))
.Where(r => r.CreateTime > DateTimeOffset.FromUnixTimeMilliseconds(timestamp).ToLocalTime())
.SingleAsync();
if (lasaMediaFile == null)
{
@ -1594,6 +1595,7 @@ namespace OpenAuth.App.ServiceApp
Result = new CommandVideoResponse()
};
}
return new Response<CommandVideoResponse>()
{
Result = new CommandVideoResponse()
@ -1610,6 +1612,7 @@ namespace OpenAuth.App.ServiceApp
}
};
}
/// <summary>
/// 获取图片信息
/// </summary>

Loading…
Cancel
Save