From 773a169ab6ee472101ce97c6b26d93d8ac11ca28 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Tue, 29 Jul 2025 16:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs b/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs index 5e3135a..b766da9 100644 --- a/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs +++ b/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs @@ -90,7 +90,7 @@ namespace YD_AllHeartRates.Api.Mqtt //List devices; var studentListCacheKey = $"{AppSettings.StudentListCacheKey}_{AppSettings.SchoolCode}"; - var deviceListCacheKey = $"{AppSettings.DeviceListCacheKey}_{AppSettings.SchoolCode}"; + //var deviceListCacheKey = $"{AppSettings.DeviceListCacheKey}_{AppSettings.SchoolCode}"; studentList = _caching.Get>(studentListCacheKey); //devices = _caching.Get>(deviceListCacheKey); @@ -257,8 +257,8 @@ namespace YD_AllHeartRates.Api.Mqtt totalData.QuantityOfElectricity = jumpData.QuantityOfElectricity; totalData.ScoreTime = jumpData.ScoreTime; - _caching.AddObject(jumpKey, totalData, 600); - _caching.AddObject(rawKey, jumpData, 60); + _caching.AddObject(jumpKey, totalData, 60); + _caching.AddObject(rawKey, jumpData, 600); } } }