细节调整

This commit is contained in:
yanghongwei 2025-04-05 21:08:36 +08:00
parent d71f65de45
commit 40ef054eff
1 changed files with 15 additions and 17 deletions

View File

@ -49,7 +49,7 @@ namespace LY.App.Service
return new ApiResult() { code = 1, msg = "设备不存在" };
}
await _redisService.SetAsync(key, deviceinfo, TimeSpan.FromDays(1));
}
var entity = input.data.Adapt<List<Alarm>>();
foreach (var item in entity)
{
@ -65,8 +65,6 @@ namespace LY.App.Service
await _db.CopyNew().Insertable(entity).SplitTable().ExecuteReturnSnowflakeIdListAsync();
//推送报警信息
await _pushService.SendMessageToAll(new { msgType = "event", data = entity });
}
return new ApiResult();
}