- update x img missing
- update display img in elenco item offerta
This commit is contained in:
Samuele Locatelli
2025-08-08 10:47:10 +02:00
parent f31e90b18b
commit c843c143a3
5 changed files with 73 additions and 13 deletions
+6
View File
@@ -119,6 +119,12 @@ namespace Lux.API.Controllers
}
string svgContent = await _imgService.LoadSvgAsync(id, env);
// se vuoto --> leggo img logo...
if(string.IsNullOrEmpty(svgContent))
{
string filePath = Path.Combine("DemoImg", "LogoEgalware.svg");
svgContent = await System.IO.File.ReadAllTextAsync(filePath);
}
byte[] bytes = System.Text.Encoding.UTF8.GetBytes(svgContent);
sw.Stop();