From 3cb47af0eb5fa1b545ee2da6e8512dcdc3046e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=BD=87=E9=98=B3?= Date: Mon, 3 Jun 2024 17:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=BF=9E=E6=8E=A5=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CPF_Cef/Common/ChunkedUpload.cs | 5 +++++ CPF_Cef/MainModel.cs | 2 +- CPF_Cef/Parame.cs | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CPF_Cef/Common/ChunkedUpload.cs b/CPF_Cef/Common/ChunkedUpload.cs index 7eb27a1..1b7581e 100644 --- a/CPF_Cef/Common/ChunkedUpload.cs +++ b/CPF_Cef/Common/ChunkedUpload.cs @@ -136,6 +136,9 @@ namespace AksWebBrowser.Common { try { + //关闭签字版 + await PublicSign("close", 2, timeout); + Task.Delay(1000).Wait(); string body = await PublicSign(type, typeCode, timeout); if (!string.IsNullOrEmpty(body)) { @@ -381,6 +384,8 @@ namespace AksWebBrowser.Common { try { + await PublicFinger("close", 2, timeout); + Task.Delay(1000).Wait(); string body = await PublicFinger(type, typeCode, timeout); if (!string.IsNullOrEmpty(body)) { diff --git a/CPF_Cef/MainModel.cs b/CPF_Cef/MainModel.cs index 5d8de7b..f5f0b19 100644 --- a/CPF_Cef/MainModel.cs +++ b/CPF_Cef/MainModel.cs @@ -54,7 +54,7 @@ namespace AKS.EnterpriseLibrary.WebBrowser { //返回内容 string result = string.Empty; - // content = Base64str2(content); + content = Base64str2(content); // Log.Info("收到请求:" + socket.ConnectionInfo.ClientIpAddress + " 请求参数:" + content); if (!string.IsNullOrEmpty(content)) { diff --git a/CPF_Cef/Parame.cs b/CPF_Cef/Parame.cs index 6c95420..e88e202 100644 --- a/CPF_Cef/Parame.cs +++ b/CPF_Cef/Parame.cs @@ -30,7 +30,7 @@ namespace AksWebBrowser //高拍仪devIndex public static string gpydevIndex = "0"; //签字版、指纹、身份证 - public static string signUrl = "http://192.168.0.234:9399/device"; + public static string signUrl = "http://127.0.0.1:9399/device"; public static int timeout = 3000; //票据打印机 public static string pritPj = "/dev/ttyS7";