From 6420c104330c61feaaab6bd9d86c5eaedcda22c5 Mon Sep 17 00:00:00 2001 From: liuwf Date: Mon, 4 Nov 2024 18:38:52 +0800 Subject: [PATCH] =?UTF-8?q?add-=E6=B7=BB=E5=8A=A0hsl=E6=BF=80=E6=B4=BB?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Extensions/PlcFactorySetup.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SlnMesnac.Extensions/PlcFactorySetup.cs b/SlnMesnac.Extensions/PlcFactorySetup.cs index f8f6b36..ee6f7f4 100644 --- a/SlnMesnac.Extensions/PlcFactorySetup.cs +++ b/SlnMesnac.Extensions/PlcFactorySetup.cs @@ -47,6 +47,11 @@ namespace SlnMesnac.Extensions try { + if (!HslCommunication.Authorization.SetAuthorizationCode("1839541f-8fb4-42c4-a13f-733b027fe5af")) + { + Log.Information("HslCommunication激活失败,可用时长24小时"); + } + Log.Information("HslCommunication 11.8.1.0激活成功"); if (appConfig.plcConfig != null) { foreach (var item in appConfig.plcConfig)