From 65d2cb86db80b15e4a9450a3c175d91abde1d59d Mon Sep 17 00:00:00 2001 From: H Vs Date: Wed, 31 Jul 2024 15:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=8E=E5=BF=83=E5=BB=BA=E6=A8=A1=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=94=B9=E4=B8=BA=E6=97=A9=E4=B8=8A6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs | 2 +- HealthMonitor.WebApi/Worker.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs b/HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs index f657b27..e0a307c 100644 --- a/HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs +++ b/HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs @@ -672,7 +672,7 @@ namespace HealthMonitor.Service.Resolver var pushSec = rand.Next(59); int pushMin= int.TryParse(heartRate.Serialno.AsSpan(heartRate.Serialno.Length - 1), out pushMin) ? pushMin : 10; // 计算距离下一个$interval天后的8点的时间间隔 - DateTime nextRunTime = new DateTime(now.Year, now.Month, now.Day, 0, pushMin, pushSec).AddDays(interval); + DateTime nextRunTime = new DateTime(now.Year, now.Month, now.Day, 6, pushMin, pushSec).AddDays(interval); TimeSpan timeUntilNextRun = nextRunTime - now; diff --git a/HealthMonitor.WebApi/Worker.cs b/HealthMonitor.WebApi/Worker.cs index 2c520e0..e51dd09 100644 --- a/HealthMonitor.WebApi/Worker.cs +++ b/HealthMonitor.WebApi/Worker.cs @@ -226,7 +226,7 @@ namespace HealthMonitor.WebApi var pushSec = rand.Next(59); int pushMin = int.TryParse(imeiDel.AsSpan(imeiDel.Length - 1), out pushMin) ? pushMin : 10; // 计算距离下一个$interval天后的0点的时间间隔 - DateTime nextRunTime = new DateTime(now.Year, now.Month, now.Day, 0, pushMin, pushSec).AddDays(interval); + DateTime nextRunTime = new DateTime(now.Year, now.Month, now.Day, 6, pushMin, pushSec).AddDays(interval); TimeSpan timeUntilNextRun = nextRunTime - now; // 如果当前时间已经超过了8点,将等待到明天后的8点