diff --git a/WebApi_data_value/Services/BackgroundService.cs b/WebApi_data_value/Services/BackgroundService.cs index ad67e4d..08e2ddb 100644 --- a/WebApi_data_value/Services/BackgroundService.cs +++ b/WebApi_data_value/Services/BackgroundService.cs @@ -27,7 +27,7 @@ public class ParkingService : BackgroundService await PerformParkingCheckAsync(stoppingToken); while (!stoppingToken.IsCancellationRequested) { - await Task.Delay(TimeSpan.FromSeconds(50), stoppingToken); // 每50秒執行 + await Task.Delay(TimeSpan.FromSeconds(60), stoppingToken); // 每60秒執行 await PerformParkingCheckAsync(stoppingToken); } }