fix 调试大华设备对接

This commit is contained in:
2024-01-24 20:46:55 +08:00
parent a36ff46722
commit 51c80a242e
19 changed files with 368 additions and 74 deletions

View File

@@ -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>
/// 是否启用