|
|
|
|
@ -189,12 +189,13 @@ namespace Alarm.DomainService.DahAlarm |
|
|
|
|
/// <param name="dto"></param> |
|
|
|
|
/// <returns></returns> |
|
|
|
|
/// <exception cref="NotImplementedException"></exception> |
|
|
|
|
public async Task<DaHApiResult<bool>> HandleAsync(EventEnvelopeDto dto) |
|
|
|
|
public async Task<DaHApiResult<bool>> HandleAsync(object dto2) |
|
|
|
|
{ |
|
|
|
|
DaHApiResult<bool> result = new() { Code = "200", Msg = "接口调用成功", Data = true }; |
|
|
|
|
_logger.LogWarning($"报警回调的数据{dto2}"); |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
if (dto is null) |
|
|
|
|
if (dto2 is null) |
|
|
|
|
{ |
|
|
|
|
result.Code = "500"; |
|
|
|
|
result.Msg = "请求参数不能为空"; |
|
|
|
|
@ -202,7 +203,7 @@ namespace Alarm.DomainService.DahAlarm |
|
|
|
|
_logger.LogWarning("大华报警事件订阅回调处理失败,参数不能为空"); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EventEnvelopeDto dto = dto2 as EventEnvelopeDto; |
|
|
|
|
if (dto.Info is not null) |
|
|
|
|
{ |
|
|
|
|
//这是大华的残卫报警类型 |
|
|
|
|
|