This commit is contained in:
tanglong 2025-07-29 11:15:06 +08:00
parent 24fe256da0
commit 89e9a320d9

View File

@ -159,6 +159,11 @@ namespace YD_AllHeartRates.Api.Services.Impl
var jumpRope = _caching.Get<JumpRopeData>(jumpRopeKey); var jumpRope = _caching.Get<JumpRopeData>(jumpRopeKey);
if (jumpRope == null)
{
jumpRope = await _userContext.JumpRopeData.Where(x => x.StudentNo == student.StudentNo).FirstOrDefaultAsync();
}
// ❗心率缓存未命中 → 单独查数据库 // ❗心率缓存未命中 → 单独查数据库
//if (heartRate == null) //if (heartRate == null)
//{ //{