|
|
@ -3,6 +3,7 @@ using AksWebBrowser.Common; |
|
|
|
using AksWebBrowser.Devices; |
|
|
|
using AksWebBrowser.Devices; |
|
|
|
using AKSWebBrowser.Commen; |
|
|
|
using AKSWebBrowser.Commen; |
|
|
|
using Fleck; |
|
|
|
using Fleck; |
|
|
|
|
|
|
|
using LibVLCSharp.Shared; |
|
|
|
using Newtonsoft.Json; |
|
|
|
using Newtonsoft.Json; |
|
|
|
using Newtonsoft.Json.Linq; |
|
|
|
using Newtonsoft.Json.Linq; |
|
|
|
using System; |
|
|
|
using System; |
|
|
@ -588,13 +589,9 @@ namespace AKS.EnterpriseLibrary.WebBrowser |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
Task.Run(() => { HttpPostResponseBySign("open", 1, param.code, param.timeout); }); |
|
|
|
Task.Run(() => {HttpPostResponseBySign("open", 1, param.code, param.timeout); }); |
|
|
|
@event3.WaitOne(); |
|
|
|
@event3.WaitOne(); |
|
|
|
string result = sginStr; |
|
|
|
string result = sginStr; |
|
|
|
if (sginStr.Contains("")) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
result = " {\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"message\":\"Falied\",\"code\":\"400\",\"status\":false,\"suffix\":\"png\",\"data\":\"" + "在规定时间内未签字" + "\"}"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
SubmitLogs(result, "OpenSign"); |
|
|
|
SubmitLogs(result, "OpenSign"); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
@ -684,7 +681,7 @@ namespace AKS.EnterpriseLibrary.WebBrowser |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
Task.Run(() => { HttpPostResponseByFinger("open", 1, param.timeout); }); |
|
|
|
Task.Run(() => {HttpPostResponseByFinger("open", 1, param.timeout); }); |
|
|
|
event2.WaitOne(); |
|
|
|
event2.WaitOne(); |
|
|
|
string result = string.Empty; |
|
|
|
string result = string.Empty; |
|
|
|
Log.Info("指纹数据" + fingerStr); |
|
|
|
Log.Info("指纹数据" + fingerStr); |
|
|
@ -1209,6 +1206,35 @@ namespace AKS.EnterpriseLibrary.WebBrowser |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// 开启/关闭纠偏显示 |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <returns></returns> |
|
|
|
|
|
|
|
public static string EnableDeskImage(int idx) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
//获取设备信息 |
|
|
|
|
|
|
|
string param = "/EnableDeskImage?enable=" + idx; |
|
|
|
|
|
|
|
Task.Run(() => HttpResponse(param)); |
|
|
|
|
|
|
|
@event6.WaitOne(); |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(gpyStr)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return ""; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
JObject jo = (JObject)JsonConvert.DeserializeObject(gpyStr); |
|
|
|
|
|
|
|
if (jo["returnCode"].ToString() == "2" || jo["returnCode"].ToString() == "0") |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return "200"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// // Log.Info(jo["returnMsg"].ToString()); |
|
|
|
|
|
|
|
return ""; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// 拍照 |
|
|
|
/// 拍照 |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|