林豪 左 1 year ago
parent
commit
dd542ae5e0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      WCS.Service/Program.cs

+ 4 - 1
WCS.Service/Program.cs

@@ -3,6 +3,7 @@ using System.Runtime.InteropServices;
 using ServiceCenter.Extensions;
 using ServiceCenter.Redis;
 using ServiceCenter.WebApi;
+using ServiceCenter;
 
 namespace WCS.Service
 {
@@ -16,6 +17,8 @@ namespace WCS.Service
 
             #endregion 接入Redis
 
+            ServiceHub.AddSystemMode(SystemMode.虚拟plc);
+
             //互斥锁检测
             var mutexName = RedisHub.Default.Check("Mutex") ?? throw new Exception("请在Redis中配置互斥量值");
 
@@ -67,4 +70,4 @@ namespace WCS.Service
                 });
         }
     }
-}
+}