|
|
@ -48,6 +48,18 @@ namespace SlnMesnac.Extensions
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
do
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!HslCommunication.Authorization.SetAuthorizationCode("1839541f-8fb4-42c4-a13f-733b027fe5af"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Log.Information("HslCommunication激活失败,可用时长为24小时");
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Log.Information("HslCommunication激活成功");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (appConfig.plcConfig != null)
|
|
|
|
if (appConfig.plcConfig != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach (var item in appConfig.plcConfig)
|
|
|
|
foreach (var item in appConfig.plcConfig)
|
|
|
@ -76,6 +88,7 @@ namespace SlnMesnac.Extensions
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}while(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|