Update rel vers x ACC

This commit is contained in:
Samuele Locatelli
2024-09-26 08:47:07 +02:00
parent 9d098ef794
commit 8a97bfe6bf
4 changed files with 17 additions and 7 deletions
@@ -194,7 +194,11 @@ namespace EgwControlCenter.App.Components.Compo
ACService.ResetSubLic(setCodImp, setAppKey);
}
await Task.Delay(10);
ACService.CheckAttivazioni();
bool fatto = ACService.CheckAttivazioni();
if (fatto)
{
ACService.DoSaveConfig();
}
await Task.Delay(10);
remoteCalling = false;
}
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<Version>1.0.2409.2416</Version>
<Version>1.0.2409.2607</Version>
<Configurations>Debug;Release;DEBUG_Local</Configurations>
</PropertyGroup>
<ItemGroup>
@@ -4,8 +4,8 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<ApplicationRevision>2416</ApplicationRevision>
<ApplicationVersion>1.0.2409.2416</ApplicationVersion>
<ApplicationRevision>2607</ApplicationRevision>
<ApplicationVersion>1.0.2409.2607</ApplicationVersion>
<BootstrapperEnabled>True</BootstrapperEnabled>
<Configuration>Release</Configuration>
<CreateWebPageOnPublish>True</CreateWebPageOnPublish>
+9 -3
View File
@@ -424,10 +424,16 @@ namespace EgwControlCenter.Core
var currResp = await client.PostAsync(actReq);
if (currResp.StatusCode == System.Net.HttpStatusCode.OK && currResp.Content != null)
{
var currVal = JsonConvert.DeserializeObject<AttivazioneDTO>(currResp.Content);
if (currVal != null)
// mi restituisce elenco attivazioni
var currList = JsonConvert.DeserializeObject<List<AttivazioneDTO>>(currResp.Content);
if (currList != null)
{
answ = currVal;
// se contiene anche la richiesta è ok...
var recUpd = currList.FirstOrDefault(x => x.CodImpiego == CodImp && x.Chiave == AppKey);
if (recUpd != null)
{
answ = recUpd;
}
}
}
});