Update image in test...

This commit is contained in:
Samuele Locatelli
2025-11-04 17:39:59 +01:00
parent d0f32c6c5d
commit 9303320cdc
3 changed files with 17 additions and 14 deletions
@@ -134,6 +134,21 @@ namespace EgwCoreLib.Lux.Data.Services
fType = "png";
imgUID.Replace(".png", "");
}
switch (envir)
{
case Constants.EXECENVIRONMENTS.NULL:
break;
case Constants.EXECENVIRONMENTS.WINDOW:
fType = "svg";
break;
case Constants.EXECENVIRONMENTS.BEAM:
case Constants.EXECENVIRONMENTS.WALL:
case Constants.EXECENVIRONMENTS.CABINET:
default:
fType = "png";
break;
}
string rndImg = $"{DateTime.Now:HHmmssfff}";
string fullUrl = $"{baseUrl}/{tag}/{imgUID}-{rndImg}.{fType}?envir={envir}".Replace("////", "//");
return fullUrl;
-12
View File
@@ -99,18 +99,6 @@ namespace Lux.API.Controllers
// ...se ricevo percorso --> leggo jwd/svg cablato
if (!string.IsNullOrEmpty(id))
{
// se contiene ".svg" lo levo...
if (id.EndsWith(".svg"))
{
mimeType = "image/svg+xml";
//id = id.Replace(".svg", "");
}
else if (id.EndsWith(".png"))
{
mimeType = "image/png";
//id.Replace(".png", "");
}
// se contiene i caratteri casuali x forzare reload --> li levo
if (id.Contains("-"))
{
+2 -2
View File
@@ -59,9 +59,9 @@
"HostOs": "Win",
"CalcTag": "calc",
"GenericBaseUrl": "generic",
//"Prog.ApiUrl": "https://office.egalware.com/lux/srv/api",
"Prog.ApiUrl": "https://localhost:7135/api",
"ImageBaseUrl": "window",
//"Prog.ApiUrl": "https://office.egalware.com/lux/srv/api",
"ImageBaseUrl": "Image",
"RouteBaseUrl": "window",
"BomChannel": "Egw:bom",
"HwListChannel": "Egw:hw:list",