|
@@ -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
|