Browse Source

获取好哒FTP交易数据,时间限制到10点后22点前

lcl 10 months ago
parent
commit
8f7cdc281a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Util/HaoDa/GetHaoDaFTPInfoService.cs

+ 2 - 1
Util/HaoDa/GetHaoDaFTPInfoService.cs

@@ -282,13 +282,14 @@ namespace MySystem
         {
             while (true)
             {
-                if (DateTime.Now.Hour > 10 && DateTime.Now.Hour < 12)
+                if (DateTime.Now.Hour > 10 && DateTime.Now.Hour < 22)
                 {
                     string check = function.ReadInstance("/GetFTPDataInfoYesterday/check" + DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd") + ".txt");
                     if (string.IsNullOrEmpty(check))
                     {
                         function.WritePage("/GetFTPDataInfoYesterday/", "check" + DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd") + ".txt", DateTime.Now.ToString());
                         GetFTPDataInfoYesterday();
+                        Thread.Sleep(600000);
                     }
                 }
                 else