|
|
|
@ -2843,13 +2843,9 @@ namespace _24Hour.Controllers.Common
|
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
public class GetBaseStringDto |
|
|
|
|
{ |
|
|
|
|
public List<string> Files { get; set; } |
|
|
|
|
} |
|
|
|
|
[HttpPost] |
|
|
|
|
[Route("GetImageFiles")] |
|
|
|
|
public async Task<Result> GetImageFiles(GetBaseStringDto file) |
|
|
|
|
public async Task<Result> GetImageFiles(List<string> file) |
|
|
|
|
{ |
|
|
|
|
//根据输入url获取base64值 |
|
|
|
|
var getstr = (string s) => |
|
|
|
@ -2870,9 +2866,9 @@ namespace _24Hour.Controllers.Common
|
|
|
|
|
{ |
|
|
|
|
var urlpath = s.Replace("/", @"\"); |
|
|
|
|
var path = Path.Combine(Environment.CurrentDirectory, "wwwroot" + urlpath); |
|
|
|
|
return System.IO.File.Exists(s); |
|
|
|
|
return System.IO.File.Exists(path); |
|
|
|
|
}; |
|
|
|
|
var data = file.Files.Select(x => new |
|
|
|
|
var data = file.Select(x => new |
|
|
|
|
{ |
|
|
|
|
Item=x, |
|
|
|
|
IsExist = getexist(x), |
|
|
|
|