Commit 05441a3c by zhoujinhui

修正缺货数据同步

parent 3bb329ca
......@@ -13,14 +13,14 @@ namespace AutoTurnOver.WeeklyStatistics
protected override Task ExecuteAsync(CancellationToken stoppingToken)
{
_timer = new Timer(DoWork, null, TimeSpan.Zero, TimeSpan.FromSeconds(60));
Console.WriteLine("执行缺货数据同步!");
return Task.CompletedTask;
}
private void DoWork(object state)
{
var now = DateTime.Now;
var dayOfWeek = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(now.DayOfWeek);
if (now.Hour == 0 && now.Minute == 1)
if (now.Hour == 1 && now.Minute == 1)
{
try
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment