This commit is contained in:
tanglong 2025-07-16 17:48:50 +08:00
parent 9eb89df83f
commit 673b04ab16

View File

@ -283,14 +283,14 @@ namespace YD_AllHeartRates.Api.Mqtt
// 跳绳每日更新保存
// 每隔 60 秒执行一次
_ = Task.Run(async () =>
{
while (true)
{
await SyncTodayJumpDataToDbAsync();
await Task.Delay(10000); // 每 10 秒检查一次
}
});
//_ = Task.Run(async () =>
//{
// while (true)
// {
// await SyncTodayJumpDataToDbAsync();
// await Task.Delay(10000); // 每 10 秒检查一次
// }
//});
}
}
private async Task RunJumpSyncLoopAsync(CancellationToken token)
@ -381,7 +381,7 @@ namespace YD_AllHeartRates.Api.Mqtt
{
try
{
if ((DateTime.Now - _lastJumpRopeSaveTime).TotalSeconds < 60)
if ((DateTime.Now - _lastJumpRopeSaveTime).TotalSeconds < 600)
return;
var today = DateTime.Today;