From a4216254a8c2220e11f5397ad7ae0b6546e274b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=BD=87=E9=98=B3?= Date: Thu, 6 Jun 2024 15:57:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=90=AF=E5=8A=A8=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CPF_Cef/MainModel.cs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/CPF_Cef/MainModel.cs b/CPF_Cef/MainModel.cs index 19a5181..22f2234 100644 --- a/CPF_Cef/MainModel.cs +++ b/CPF_Cef/MainModel.cs @@ -1623,7 +1623,6 @@ namespace AKS.EnterpriseLibrary.WebBrowser try { WebSocketClientWithHeartbeat webSocket = new WebSocketClientWithHeartbeat(); - Parame.ImgBase64 = ImageBase64; var mode = new { @@ -2032,12 +2031,12 @@ namespace AKS.EnterpriseLibrary.WebBrowser { if (true) { - //启动身份证、签字版、指纹服务 + //启动身份证、签字版、指纹服务 nohup ./script.sh & string commod = "lsof -i:9399"; string zxjg = Bash(commod); if (string.IsNullOrEmpty(zxjg)) { - commod = "cd /opt/apps/yfzy/bin && ./FiveInchServer-yfzy.sh"; + commod = "cd /opt/apps/yfzy/bin && nohup ./FiveInchServer-yfzy.sh &"; Bash(commod); } } @@ -2049,7 +2048,7 @@ namespace AKS.EnterpriseLibrary.WebBrowser string zxjg = Bash(commod); if (string.IsNullOrEmpty(zxjg)) { - commod = "cd /opt/hCamera && ./start.sh"; + commod = "cd /opt/hCamera && nohup ./start.sh &"; Bash(commod); //获取设备 GetSnIndex(); @@ -2059,6 +2058,17 @@ namespace AKS.EnterpriseLibrary.WebBrowser EnableDeskImage(1); } } + if (true) + { + //启动双目服务 + string commod = "netstat -tuln | grep 22226"; + string zxjg = Bash(commod); + if (string.IsNullOrEmpty(zxjg)) + { + commod = "cd /data/home/aks/lhtserver/lhtserver && nohup ./LhtCamServer.sh &"; + Bash(commod); + } + } } catch { } finally { }