|
|
|
@ -1519,7 +1519,7 @@ namespace OpenAuth.App.ServiceApp
|
|
|
|
|
return rootNodes;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task<Response<string>> GetTaskPicList(string flightId, long timestamp)
|
|
|
|
|
public async Task<Response<LasaMediaFile>> GetTaskPicList(string flightId, long timestamp)
|
|
|
|
|
{
|
|
|
|
|
var lasaMediaFile = await Repository.ChangeRepository<SugarRepositiry<LasaMediaFile>>()
|
|
|
|
|
.AsQueryable()
|
|
|
|
@ -1529,16 +1529,17 @@ namespace OpenAuth.App.ServiceApp
|
|
|
|
|
.SingleAsync();
|
|
|
|
|
if (lasaMediaFile == null)
|
|
|
|
|
{
|
|
|
|
|
return new Response<string>()
|
|
|
|
|
return new Response<LasaMediaFile>()
|
|
|
|
|
{
|
|
|
|
|
Result = ""
|
|
|
|
|
Result = new LasaMediaFile()
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
return new Response<string>()
|
|
|
|
|
|
|
|
|
|
lasaMediaFile.PicLink = "http://" + _minioService.endPoint + "/" + _minioService._bucketName + "/" +
|
|
|
|
|
lasaMediaFile.ObjectKey;
|
|
|
|
|
return new Response<LasaMediaFile>()
|
|
|
|
|
{
|
|
|
|
|
// todo objectKey 转换成链接
|
|
|
|
|
Result = "http://" + _minioService.endPoint + "/" + _minioService._bucketName + "/" +
|
|
|
|
|
lasaMediaFile.ObjectKey
|
|
|
|
|
Result = lasaMediaFile
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|