600
This commit is contained in:
parent
9eb89df83f
commit
673b04ab16
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user