This commit is contained in:
tanglong 2025-07-15 13:34:55 +08:00
parent 02413e7818
commit 4d4ff11ee9

View File

@ -161,8 +161,8 @@ namespace YD_AllHeartRates.Api.Services.Impl
.OrderByDescending(x => x.ScoreTime)
.FirstOrDefaultAsync();
if (heartRate != null)
_caching.AddObject(heartRateKey, heartRate, 60);
//if (heartRate != null)
// _caching.AddObject(heartRateKey, heartRate, 60);
}
// ❗跳绳缓存未命中 → 单独查数据库
@ -173,8 +173,8 @@ namespace YD_AllHeartRates.Api.Services.Impl
.OrderByDescending(x => x.ScoreTime)
.FirstOrDefaultAsync();
if (jumpRope != null)
_caching.AddObject(jumpRopeKey, jumpRope, 60);
//if (jumpRope != null)
// _caching.AddObject(jumpRopeKey, jumpRope, 60);
}
// 心率强度判断