细节调整

This commit is contained in:
yanghongwei 2025-09-11 00:12:48 +08:00
parent 1175c776bf
commit 5fb29db7e9
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ namespace LY.App.Service
items.ForEach(async s => items.ForEach(async s =>
{ {
var key= RedisKeyList.DeviceStatus(s.DeviceSN); var status = await _redisService.ExistsAsync(RedisKeyList.DeviceStatus(s.DeviceSN));
s.online = await _redisService.ExistsAsync(key); s.online = status;
}); });
return new ApiResult() return new ApiResult()
{ {