lcl 7 mesiacov pred
rodič
commit
ccbfc9e60d

BIN
.DS_Store


+ 9 - 10
AppStart/Helper/WifiWarningService.cs

@@ -28,21 +28,21 @@ namespace MySystem
             {
                 try
                 {
-                    if(DateTime.Now.Hour > 2 && DateTime.Now.Hour < 4 && DateTime.Now >= DateTime.Parse("2024-10-30 00:00:00"))
-                    {
-                        string chk = function.ReadInstance("/WifiWithhold/" + DateTime.Now.ToString("yyyyMMdd") + ".txt");
-                        if(string.IsNullOrEmpty(chk))
-                        {
-                            function.WritePage("/WifiWithhold/", "" + DateTime.Now.ToString("yyyyMMdd") + ".txt", DateTime.Now.ToString());
+                    // if(DateTime.Now.Hour > 2 && DateTime.Now.Hour < 4 && DateTime.Now >= DateTime.Parse("2024-10-30 00:00:00"))
+                    // {
+                    //     string chk = function.ReadInstance("/WifiWithhold/" + DateTime.Now.ToString("yyyyMMdd") + ".txt");
+                    //     if(string.IsNullOrEmpty(chk))
+                    //     {
+                    //         function.WritePage("/WifiWithhold/", "" + DateTime.Now.ToString("yyyyMMdd") + ".txt", DateTime.Now.ToString());
                             WifiWithhold();
-                        }
-                    }
+                    //     }
+                    // }
                 }
                 catch (Exception ex)
                 {
                     function.WriteLog(DateTime.Now.ToString() + "\r\n" + ex.ToString(), "WIFI提醒异常");
                 }
-                Thread.Sleep(300000);
+                Thread.Sleep(30000);
             }
         }
 
@@ -50,7 +50,6 @@ namespace MySystem
         private void WifiWithhold()
         {
             WebCMSEntities db = new WebCMSEntities();
-            DateTime end = DateTime.Parse(DateTime.Now.AddDays(-29).ToString("yyyy-MM-dd") + " 00:00:00");
             int Id = 0;
             bool op = true;
             while(op)

+ 1 - 1
AppStart/Helper/WifiWithholdService.cs

@@ -42,7 +42,7 @@ namespace MySystem
                 {
                     function.WriteLog(DateTime.Now.ToString() + "\r\n" + ex.ToString(), "WIFI提醒异常");
                 }
-                Thread.Sleep(300000);
+                Thread.Sleep(30000);
             }
         }