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

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

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

Loading…
Cancel
Save