Browse Source

10点过后执行好哒数据抓取

lcl 6 months ago
parent
commit
4d0d148d51
1 changed files with 5 additions and 2 deletions
  1. 5 2
      AppStart/GetHaoDaFTPInfoService.cs

+ 5 - 2
AppStart/GetHaoDaFTPInfoService.cs

@@ -58,8 +58,11 @@ namespace MySystem
                         Thread.Sleep(600000);
                     }
                 }
-                GetDepositData(DateTime.Now.AddDays(-1).ToString("yyyyMMdd"));
-                Thread.Sleep(7200000);
+                if (DateTime.Now.Hour > 10)
+                {
+                    GetDepositData(DateTime.Now.AddDays(-1).ToString("yyyyMMdd"));
+                }
+                Thread.Sleep(1800000);
             }
         }
         public void StartListen()