Update image in test...
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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("-"))
|
||||
{
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user