Testing code eliminated

main
alfonso 8 months ago
parent 95307ea2c3
commit bb1e1152cd
  1. 6
      Services/MFileManager/SvcMFileManager.cs
  2. 4
      appsettings.Development.json
  3. 4
      appsettings.json

@ -8,14 +8,15 @@ namespace AOLBackend.Services.MFileManager
{
private readonly IFileManagerRepository _Repo;
private readonly IConfiguration _config;
// private readonly IFilePaths4ProcessRepository _RepoRelativePath;
private readonly string rootPath;
private readonly string defaultImage;
public SvcMFileManager(IConfiguration config, IFileManagerRepository Repo, string _rootPath)
{
_config = config;
_Repo = Repo;
rootPath = _rootPath;
defaultImage = _config.GetValue<string>("defaultImage");
}
public async Task<List<FileManager>> GetFilesFromLog(int Tags, int Proceso)
@ -26,8 +27,7 @@ namespace AOLBackend.Services.MFileManager
public async Task<IActionResult> getFileContentById(long id)
{
Boolean ExisteEnDisco = false;
byte[] emptyFile = System.IO.File.ReadAllBytes("c:\\downs\\empty.png");
//byte[] emptyFile = System.IO.File.ReadAllBytes("D:\\data\\empty.png");
byte[] emptyFile = System.IO.File.ReadAllBytes(defaultImage);
MemoryStream emptyms = new MemoryStream(emptyFile);
FileManager recFound = await _Repo.getFileById(id);
if (!String.IsNullOrEmpty(recFound.NombreArchivo))

@ -11,8 +11,6 @@
},
"pathArchivoElectronico": "C:\\downs\\ArchivoElectronicoSIR\\www.gemcousa.com\\SIR-GEMCO\\DOCS-SIR\\",
"pathTemp": "C:\\downs\\temp\\",
"pathFotosBodega": "c:\\data\\Bodega\\Fotos\\",
"pathZipCorresponsales": "C:\\data\\",
"CorresponsalesFilePath": "C:\\data\\",
"defaultImage": "C:\\downs\\empty.png",
"Allfiles": "C:\\data\\AOL\\"
}

@ -29,8 +29,6 @@
"EmailPassword": "Al%G22a3",
"pathArchivoElectronico": "D:\\data\\ArchivoElectronicoSIR\\www.gemcousa.com\\SIR-GEMCO\\DOCS-SIR\\",
"pathTemp": "D:\\data\\temp\\",
"pathFotosBodega": "D:\\data\\Bodega\\Fotos\\",
"pathZipCorresponsales": "D:\\data\\Corresponsales\\Zips\\",
"CorresponsalesFilePath": "D:\\data\\Corresponsales\\",
"defaultImage": "D:\\downs\\empty.png",
"AllFiles": "D:\\data\\AOL\\"
}

Loading…
Cancel
Save