From 5fb29db7e930e3b37a8ab708a6e4244a3f0f8bcf Mon Sep 17 00:00:00 2001 From: yanghongwei Date: Thu, 11 Sep 2025 00:12:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/DeviceService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Service/DeviceService.cs b/Service/DeviceService.cs index 47d4535..a6b53c1 100644 --- a/Service/DeviceService.cs +++ b/Service/DeviceService.cs @@ -50,8 +50,8 @@ namespace LY.App.Service items.ForEach(async s => { - var key= RedisKeyList.DeviceStatus(s.DeviceSN); - s.online = await _redisService.ExistsAsync(key); + var status = await _redisService.ExistsAsync(RedisKeyList.DeviceStatus(s.DeviceSN)); + s.online = status; }); return new ApiResult() {