From 3a42b4f327ee874572390f4a05d1fc0d59b925a3 Mon Sep 17 00:00:00 2001 From: xxe Date: Fri, 14 Oct 2022 10:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardOUT/QuartzUtil/QuartzCore.cs | 1 - HKCardOUT/options.json | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/HKCardOUT/QuartzUtil/QuartzCore.cs b/HKCardOUT/QuartzUtil/QuartzCore.cs index 586c654..e339201 100644 --- a/HKCardOUT/QuartzUtil/QuartzCore.cs +++ b/HKCardOUT/QuartzUtil/QuartzCore.cs @@ -63,7 +63,6 @@ namespace HKCardOUT.QuartzUtil protected ITrigger CreateCronTrigger(QuartzMap quartz) { return TriggerBuilder.Create().WithIdentity(quartz.JobName, quartz.JobGroup) - .StartAt(quartz.StartTime).EndAt(quartz.EndTime) .WithCronSchedule(quartz.Cron).ForJob(quartz.JobName, quartz.JobGroup) .WithDescription(quartz.JobDetail).Build(); } diff --git a/HKCardOUT/options.json b/HKCardOUT/options.json index 7d81fc9..7b39c9e 100644 --- a/HKCardOUT/options.json +++ b/HKCardOUT/options.json @@ -5,8 +5,8 @@ "StartDevice": true, //串口 "COM": "COM3", - //定时任务时间表达式 - "Cron": "0/15 * * * * ? ", + //定时任务时间表达式 每隔6小时推送一次 + "Cron": "0 0 0/6 * * ?", //店铺ID "StoreId": "a19535e8-119f-4b10-a011-6288fd3ddb37", //加盟商Id