Browse Source

更新连接方式

master
胡超1 1 year ago
parent
commit
3cb47af0eb
  1. 5
      CPF_Cef/Common/ChunkedUpload.cs
  2. 2
      CPF_Cef/MainModel.cs
  3. 2
      CPF_Cef/Parame.cs

5
CPF_Cef/Common/ChunkedUpload.cs

@ -136,6 +136,9 @@ namespace AksWebBrowser.Common
{ {
try try
{ {
//关闭签字版
await PublicSign("close", 2, timeout);
Task.Delay(1000).Wait();
string body = await PublicSign(type, typeCode, timeout); string body = await PublicSign(type, typeCode, timeout);
if (!string.IsNullOrEmpty(body)) if (!string.IsNullOrEmpty(body))
{ {
@ -381,6 +384,8 @@ namespace AksWebBrowser.Common
{ {
try try
{ {
await PublicFinger("close", 2, timeout);
Task.Delay(1000).Wait();
string body = await PublicFinger(type, typeCode, timeout); string body = await PublicFinger(type, typeCode, timeout);
if (!string.IsNullOrEmpty(body)) if (!string.IsNullOrEmpty(body))
{ {

2
CPF_Cef/MainModel.cs

@ -54,7 +54,7 @@ namespace AKS.EnterpriseLibrary.WebBrowser
{ {
//返回内容 //返回内容
string result = string.Empty; string result = string.Empty;
// content = Base64str2(content); content = Base64str2(content);
// Log.Info("收到请求:" + socket.ConnectionInfo.ClientIpAddress + " 请求参数:" + content); // Log.Info("收到请求:" + socket.ConnectionInfo.ClientIpAddress + " 请求参数:" + content);
if (!string.IsNullOrEmpty(content)) if (!string.IsNullOrEmpty(content))
{ {

2
CPF_Cef/Parame.cs

@ -30,7 +30,7 @@ namespace AksWebBrowser
//高拍仪devIndex //高拍仪devIndex
public static string gpydevIndex = "0"; 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 int timeout = 3000;
//票据打印机 //票据打印机
public static string pritPj = "/dev/ttyS7"; public static string pritPj = "/dev/ttyS7";

Loading…
Cancel
Save