fix 调试大华设备对接
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Dlhis.Entity.Device.Enums;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Dlhis.Basic.Device.Response;
|
||||
|
||||
@@ -72,7 +73,26 @@ public class DeviceResponse
|
||||
/// <summary>
|
||||
/// 连接信息
|
||||
/// </summary>
|
||||
public string ConnectionInfo { get; set; }
|
||||
public object ConnectionInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return JObject.Parse(ConnectionInfoStr);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return JObject.Parse("{}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 连接信息
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string ConnectionInfoStr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用
|
||||
|
||||
Reference in New Issue
Block a user