This commit is contained in:
tanglong 2025-07-15 18:07:31 +08:00
parent d73d342ab0
commit 3836930a63
9 changed files with 4 additions and 4 deletions

View File

@ -255,7 +255,7 @@ namespace YD_AllHeartRates.Api.Mqtt
// 写入缓存(总值 + 原始值)
_caching.AddObject(jumpKey, totalData, 60 * 24);
_caching.AddObject(rawKey, jumpData, 60 * 24);
_caching.AddObject(rawKey, jumpData, 60);
// 记录活跃学生编号(便于定时入库)
//RedisHelper.SAdd($"jumpRope:active:{DateTime.Now:yyyyMMdd}", student.StudentNo);

View File

@ -117,7 +117,7 @@ namespace YD_AllHeartRates.Api.Services.Impl
res.HeartRateOnlineCount = onlineHeartRateCount;
// 在线跳绳设备
int onlineJumpRopeCount = RedisHelper.Keys("jumpRope:active:*").Length;
int onlineJumpRopeCount = RedisHelper.Keys("jumpRope:raw:*").Length;
res.JumpingRopeOnLineCount = onlineJumpRopeCount;
// 1. 构建缓存 key

View File

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_AllHeartRates.Api")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+43f076f872b66673a4a48984e93b5af18678ab90")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d73d342ab0c4fe83354591685ea981b1ff6c1124")]
[assembly: System.Reflection.AssemblyProductAttribute("YD_AllHeartRates.Api")]
[assembly: System.Reflection.AssemblyTitleAttribute("YD_AllHeartRates.Api")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
b0f272ad7220d6b797997e6256efe0155a22b7fdee2e14ca711ed9643b29fa86
52370451a4e753e834d60ff520dd301bc4a9be42954e97d28f44d0a4b4def4a2